This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configure LeakCanary in the sample project * Clean listener references in every single point where permission requests end
- Loading branch information
1 parent
e66d9f9
commit 5eaa0ae
Showing
5 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
sample/src/main/java/com/karumi/dexter/sample/SampleApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.karumi.dexter.sample; | ||
|
||
import android.app.Application; | ||
import com.squareup.leakcanary.LeakCanary; | ||
|
||
public class SampleApplication extends Application { | ||
|
||
@Override public void onCreate() { | ||
super.onCreate(); | ||
configureLeakCanary(); | ||
} | ||
|
||
private void configureLeakCanary() { | ||
if (LeakCanary.isInAnalyzerProcess(this)) { | ||
return; | ||
} | ||
LeakCanary.install(this); | ||
} | ||
} |