Skip to content

App in prod calls ANR when user exits from image viewer #48

@ivanov84

Description

@ivanov84

Describe the bug
App in production calls ANR when user exits from image viewer

To Reproduce
Steps to reproduce the behavior:

  1. open image
  2. press back button in phone bottom
  3. repeat before it apprears again

Expected behavior
no ANR, photo viewer is closed

Smartphone (please complete the following information):

  • OS: [more android 8.1]
  • Plugin version [2.1.0]

Additional context
I'm going to try catch that code in file ImageFragment.kt:

private fun postNotification() {
        var info: MutableMap<String, Any> = mutableMapOf()
        info["result"] = true
        info["imageIndex"] = startFrom
        NotificationCenter.defaultCenter().postNotification("photoviewerExit", info);
}

Screenshots
image
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions