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

Crash in showing the dialog after onSaveInstanceState #45

Open
johngray1965 opened this issue Jun 19, 2018 · 0 comments
Open

Crash in showing the dialog after onSaveInstanceState #45

johngray1965 opened this issue Jun 19, 2018 · 0 comments
Labels
possible bug It may be a bug, but it hasn't been reproduced yet

Comments

@johngray1965
Copy link

Details
  • PiracyChecker version: 1.2.3
  • Device OS version: 7.0
  • Device Manufacturer: LG LG-H870, HUAWEI RNE-L21, Samsung Galaxy S7, so far
Builder
                    mPiracyChecker = new PiracyChecker(this)
                        .saveResultToSharedPreferences(prefs, CHECK_RESULT)
                        .enableGooglePlayLicensing(key)
                        .enableSigningCertificate(AppKeyUtil.INSTANCE.getSigningSig())
                        .enableEmulatorCheck(false);
                    if (!BuildConfig.DEBUG) {
                        try {
                            mPiracyChecker.start();
                        } catch (final VerifyError e) {
                            Timber.e(e);
                        }
                    }
Reproduction Steps

I don't know the reproduction steps, I'm seeing the crash in crashlytics.

Expected Result

Too not crash

Actual Result

a Crash:

Fatal Exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
       at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1434)
       at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1452)
       at android.app.BackStackRecord.commitInternal(BackStackRecord.java:707)
       at android.app.BackStackRecord.commit(BackStackRecord.java:671)
       at android.app.DialogFragment.show(DialogFragment.java:231)
       at com.github.javiersantos.piracychecker.PiracyCheckerDialog.show(PiracyCheckerDialog.java:26)
       at com.github.javiersantos.piracychecker.PiracyChecker$1.dontAllow(PiracyChecker.java:279)
       at com.github.javiersantos.piracychecker.PiracyChecker.doExtraVerification(PiracyChecker.java:401)
       at com.github.javiersantos.piracychecker.PiracyChecker.access$000(PiracyChecker.java:34)
       at com.github.javiersantos.piracychecker.PiracyChecker$2.dontAllow(PiracyChecker.java:334)
       at com.github.javiersantos.licensing.LibraryChecker.handleServiceConnectionError(LibraryChecker.java:280)
       at com.github.javiersantos.licensing.LibraryChecker.access$100(LibraryChecker.java:60)
       at com.github.javiersantos.licensing.LibraryChecker$ResultListener$1.run(LibraryChecker.java:329)
       at android.os.Handler.handleCallback(Handler.java:751)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:154)
       at android.os.HandlerThread.run(HandlerThread.java:61)
@javiersantos javiersantos added the possible bug It may be a bug, but it hasn't been reproduced yet label Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug It may be a bug, but it hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants