Skip to content

Commit

Permalink
Only observe clipboard content changes when window has focus
Browse files Browse the repository at this point in the history
  • Loading branch information
tuancoltech committed Jun 22, 2024
1 parent 2d81c2a commit e0d33d8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class EditTextNotesFragment: BaseEditNoteFragment() {
}

private val windowFocusedListener = OnWindowFocusChangeListener {
observeClipboardContent()
if (it) {
observeClipboardContent()
}
}

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down

0 comments on commit e0d33d8

Please sign in to comment.