You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified there are no duplicate active or recent bugs, questions, or requests.
I have verified that I am using the latest version of PiracyChecker.
I have given my issue a non-generic title.
I have read over the documentation (before asking questions on how to do something).
Details
PiracyChecker version: 1.1
Device OS version: 7.1.2
Device Manufacturer: Huawei
Device Name: Nexus 6P
Reproduction Steps
Open the app
Rotate the activity
Expected Result
Activity's instance shouldn't be retained & duplicated.
Actual Result
Activity's context leak.
Maybe put it inside a WeakReference, that way it'll be garbage collected if the activity isn't valid anymore. You can use LeakCanary to double check on actvity leaks.
The text was updated successfully, but these errors were encountered:
Possible fix, call PiracyChecker.destroy() before super.onDestroy(); and it clears up the Activity reference. Doing that and I can't reproduce the issue anymore.
Since that part isn't taken care by the library maybe add that in the ReadMe since it isn't very clear.
Details
1.1
7.1.2
Huawei
Nexus 6P
Reproduction Steps
Expected Result
Activity's instance shouldn't be retained & duplicated.
Actual Result
Activity's context leak.
Maybe put it inside a WeakReference, that way it'll be garbage collected if the activity isn't valid anymore. You can use LeakCanary to double check on actvity leaks.
The text was updated successfully, but these errors were encountered: