-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
onlylemi
committed
May 14, 2016
1 parent
bc7e8fb
commit 75b47bb
Showing
5 changed files
with
35 additions
and
3 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
30 changes: 30 additions & 0 deletions
30
demo/src/main/java/com/onlylemi/mapview/DemoApplication.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,30 @@ | ||
package com.onlylemi.mapview; | ||
|
||
import android.app.Application; | ||
import android.content.Context; | ||
|
||
import com.squareup.leakcanary.LeakCanary; | ||
import com.squareup.leakcanary.RefWatcher; | ||
|
||
/** | ||
* DemoApplication | ||
* | ||
* @author: onlylemi | ||
* @time: 2016-05-14 12:07 | ||
*/ | ||
public class DemoApplication extends Application { | ||
|
||
private static Context context; | ||
private RefWatcher refWatcher; | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
context = getApplicationContext(); | ||
refWatcher = LeakCanary.install(this); | ||
} | ||
|
||
public static Context getContext() { | ||
return context; | ||
} | ||
} |
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