mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-25 19:32:54 +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) {
|
if (this.appView == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Force window to have focus, so application always
|
if (! this.getWindow().getDecorView().hasFocus()) {
|
||||||
// receive user input. Workaround for some devices (Samsung Galaxy Note 3 at least)
|
// Force window to have focus, so application always
|
||||||
this.getWindow().getDecorView().requestFocus();
|
// receive user input. Workaround for some devices (Samsung Galaxy Note 3 at least)
|
||||||
|
this.getWindow().getDecorView().requestFocus();
|
||||||
|
}
|
||||||
|
|
||||||
this.appView.handleResume(this.keepRunning);
|
this.appView.handleResume(this.keepRunning);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user