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:
Andrey Kurdyumov 2014-07-20 00:28:44 +06:00 committed by Andrew Grieve
parent 67f474ef42
commit c2cafb4b45

View File

@ -604,6 +604,9 @@ public class CordovaActivity extends Activity implements CordovaInterface {
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();
this.appView.handleResume(this.keepRunning, this.activityResultKeepRunning);