-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
geyifeng
committed
May 14, 2019
1 parent
73f33ae
commit 0007cd7
Showing
61 changed files
with
1,396 additions
and
745 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
Binary file not shown.
Binary file not shown.
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
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
16 changes: 16 additions & 0 deletions
16
immersionbar-simple/src/main/java/com/gyf/immersionbar/simple/MyApp.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 |
---|---|---|
@@ -1,17 +1,33 @@ | ||
package com.gyf.immersionbar.simple; | ||
|
||
import android.annotation.SuppressLint; | ||
import android.app.Application; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
|
||
import com.gyf.immersionbar.simple.service.NetworkService; | ||
import com.tencent.bugly.crashreport.CrashReport; | ||
|
||
/** | ||
* @author geyifeng | ||
* @date 2017/8/4 | ||
*/ | ||
public class MyApp extends Application { | ||
|
||
@SuppressLint("StaticFieldLeak") | ||
private static Context context; | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
context = getApplicationContext(); | ||
// bugly | ||
CrashReport.initCrashReport(getApplicationContext(), "31a5f1f394", false); | ||
// 网络监听服务 | ||
startService(new Intent(this, NetworkService.class)); | ||
} | ||
|
||
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
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
Oops, something went wrong.