Skip to content

Commit

Permalink
Update app/src/main/java/it/niedermann/owncloud/notes/edit/NoteEditFr…
Browse files Browse the repository at this point in the history
…agment.java

Co-authored-by: Alper Öztürk <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky and alperozturk96 authored Nov 6, 2024
1 parent 2ee0e3a commit e9c1929
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void afterTextChanged(final Editable s) {
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());
}
}
Expand Down

0 comments on commit e9c1929

Please sign in to comment.