Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7172

Window does not receive focus after opening another activity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-android
    • None
    • Android 4.4.2, Samsung Galaxy Note 3

    Description

      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);

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            akurdyumov Andrey Kurdyumov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: