mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
CB-7172 Force window to have focus after resume
Workaround for some devices (Samsung Galaxy Note 3 at least) github: close #108
This commit is contained in:
parent
67f474ef42
commit
c2cafb4b45
@ -604,6 +604,9 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
if (this.appView == null) {
|
if (this.appView == null) {
|
||||||
return;
|
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();
|
||||||
|
|
||||||
this.appView.handleResume(this.keepRunning, this.activityResultKeepRunning);
|
this.appView.handleResume(this.keepRunning, this.activityResultKeepRunning);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user