Skip to content

Commit

Permalink
Disable LeakCanary on Android P
Browse files Browse the repository at this point in the history
  • Loading branch information
NasaGeek committed Nov 3, 2018
1 parent 32f74b6 commit 3cbc88f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public void onCreate() {
// Do nothing on failure.
}
}
LeakCanary.install(this);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
// Bug in P causes excessive leaks, just disable for now
LeakCanary.install(this);
}
try {
AesCbcWithIntegrity.SecretKeys myKey = AesCbcWithIntegrity.generateKeyFromPassword(
Utility.id(this), Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID).getBytes(), 10);
Expand Down

0 comments on commit 3cbc88f

Please sign in to comment.