mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Merge pull request #750 from goffioul/patch-1
Don't request focus explicitly if not needed
This commit is contained in:
commit
c93e3e9f6f
@ -268,9 +268,11 @@ public class CordovaActivity extends Activity {
|
||||
if (this.appView == null) {
|
||||
return;
|
||||
}
|
||||
// Force window to have focus, so application always
|
||||
// receive user input. Workaround for some devices (Samsung Galaxy Note 3 at least)
|
||||
this.getWindow().getDecorView().requestFocus();
|
||||
if (! this.getWindow().getDecorView().hasFocus()) {
|
||||
// Force window to have focus, so application always
|
||||
// receive user input. Workaround for some devices (Samsung Galaxy Note 3 at least)
|
||||
this.getWindow().getDecorView().requestFocus();
|
||||
}
|
||||
|
||||
this.appView.handleResume(this.keepRunning);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user