代码提交
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.shuwei.intelligent.shelves
|
||||
|
||||
import android.app.Application
|
||||
|
||||
/**
|
||||
* @author: star
|
||||
* @date: 2022-04-26
|
||||
*/
|
||||
class App : Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
app = this
|
||||
}
|
||||
|
||||
companion object {
|
||||
private lateinit var app: App
|
||||
|
||||
fun get(): App {
|
||||
return app
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user