Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on back pressed. #58

Open
faiqkhan480 opened this issue Oct 7, 2021 · 3 comments
Open

App crashes on back pressed. #58

faiqkhan480 opened this issue Oct 7, 2021 · 3 comments

Comments

@faiqkhan480
Copy link

faiqkhan480 commented Oct 7, 2021

If I open scanner & then pressed back button in few seconds app is crashed.
its happens when I set cardScannerTimeOut to any value greater than 0 & then pressed back before timeout is done.

image

@94wogus
Copy link

94wogus commented Oct 8, 2021

same here

@94wogus
Copy link

94wogus commented Oct 9, 2021

Occurs when you go back by the back button at the bottom of Android.

@94wogus
Copy link

94wogus commented Oct 9, 2021

i change code
/.pub-cache/hosted/pub.dartlang.org/card_scanner-1.0.1-prerelease/android/src/main/java/com/nateshmbhat/card_scanner/CardScannerCameraActivity.kt

line 187 onBackPressed

override fun onBackPressed() {
    setResult(Activity.RESULT_CANCELED)
    try{
      super.onBackPressed()
    }catch(e: NullPointerException){
      Log.d("NullPointerException")
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants