Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync clipboard in 'onWindowFocusChanged()' instead of 'onResume()'
Since Android 10, multiple activities can simultaneously be in resumed state. Specifically in multi-window mode, onPause()/onResume() are not called when window focus changes, because activity is never paused. So now we use onWindowFocusChanged() as a signal to sync clipboard. Ref: https://source.android.com/docs/core/display/multi_display/multi-resume GitHub issue: #62 & #120
- Loading branch information