[
https://issues.apache.org/jira/browse/CB-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071286#comment-14071286
]
ASF subversion and git services commented on CB-7172:
-----------------------------------------------------
Commit c2cafb4b45fcbb307a113828dfc9f723f8a6433b in cordova-android's branch
refs/heads/master from [~akurdyumov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=c2cafb4 ]
CB-7172 Force window to have focus after resume
Workaround for some devices (Samsung Galaxy Note 3 at least)
github: close #108
> 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
> Components: Android
> 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)