[
https://issues.apache.org/jira/browse/CB-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067622#comment-14067622
]
ASF GitHub Bot commented on CB-7172:
------------------------------------
GitHub user kant2002 opened a pull request:
https://github.com/apache/cordova-android/pull/108
CB-7172 Force window to have focus after resume
Force window to have focus, so application always receive user input.
Workaround for some devices (Samsung Galaxy Note 3 at least)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kant2002/cordova-android master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/108.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #108
----
commit efd52e44afa07d1338eec91e9f4277a4aaeec268
Author: Andrey Kurdyumov <[email protected]>
Date: 2014-07-19T18:28:44Z
CB-7172 Force window to have focus after resume
Force window to have focus, so application always receive user input.
Workaround for some devices (Samsung Galaxy Note 3 at least)
----
> Window does not receive focus after opening another activity
> ------------------------------------------------------------
>
> Key: CB-7172
> URL: https://issues.apache.org/jira/browse/CB-7172
> Project: Apache Cordova
> Issue Type: Bug
> Environment: Android 4.4.2, Samsung Galaxy Note 3
> Reporter: Andrey Kurdyumov
>
> I have application which open image selector using Camera plugin. After I
> select image, and execution passed again to my application it does not
> respond to any user actions.
> Last messages in the LogCat is
> E/ViewRootImpl(31835): sendUserActionEvent() mView == null
> Overall situation looks very similiar to
> http://stackoverflow.com/questions/24210548/back-and-volume-buttons-not-working-when-app-is-resumed-in-certain-conditions
> and I manage to fix that behaviour by adding line
> this.getWindow().getDecorView().requestFocus();
> to the CordovaActivity.onResume after the line
> this.appView.handleResume(this.keepRunning, this.activityResultKeepRunning);
--
This message was sent by Atlassian JIRA
(v6.2#6252)