Update app/src/main/java/it/niedermann/owncloud/notes/edit/NoteEditFragment.java

Co-authored-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
This commit is contained in:
Tobias Kaminsky 2024-11-06 08:10:15 +01:00 committed by Tobias Kaminsky
parent b7d56765de
commit 77c785a5ec

View file

@ -162,7 +162,7 @@ public class NoteEditFragment extends SearchableBaseNoteFragment {
public void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState);
if (binding.editContent != null && binding.editContent.hasFocus()) {
if (binding != null && binding.editContent.hasFocus()) {
outState.putInt("lastSelection", binding.editContent.getSelectionStart());
}
}