-
Notifications
You must be signed in to change notification settings - Fork 0
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
陈力
committed
May 22, 2023
1 parent
75c4cd8
commit 5c9c3b5
Showing
3 changed files
with
44 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
package com.cl.test.app; | ||
package com.cl.test.app | ||
|
||
import android.app.Application; | ||
import android.app.Application | ||
import com.hjq.toast.Toaster | ||
|
||
import com.hjq.toast.Toaster; | ||
class AppApplication : Application() { | ||
|
||
|
||
public class AppApplication extends Application { | ||
|
||
|
||
private static Application sInstance; | ||
|
||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
// 初始化 Toast 框架 | ||
Toaster.init(this); | ||
Toaster.init(this) | ||
} | ||
|
||
|
||
} | ||
companion object { | ||
private val sInstance: Application? = null | ||
} | ||
} |
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