优化
This commit is contained in:
@@ -6,6 +6,7 @@ import android.content.Intent
|
||||
import android.content.IntentFilter
|
||||
import android.content.SharedPreferences
|
||||
import com.shuwei.intelligent.shelves.utils.BootReceiver
|
||||
import com.shuwei.intelligent.shelves.utils.CrashHandler
|
||||
|
||||
/**
|
||||
* @author: star
|
||||
@@ -17,6 +18,7 @@ class App : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
app = this
|
||||
CrashHandler.init(this)
|
||||
val filter = IntentFilter(Intent.ACTION_BOOT_COMPLETED)
|
||||
registerReceiver(BootReceiver(), filter)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user