mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-15 07:52:02 +02:00
23 lines
605 B
Kotlin
23 lines
605 B
Kotlin
package com.simplemobiletools.notes
|
|
|
|
import android.app.Application
|
|
import com.facebook.stetho.Stetho
|
|
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
|
import com.simplemobiletools.notes.BuildConfig.USE_LEAK_CANARY
|
|
import com.squareup.leakcanary.LeakCanary
|
|
|
|
class App : Application() {
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
if (USE_LEAK_CANARY) {
|
|
if (LeakCanary.isInAnalyzerProcess(this)) {
|
|
return
|
|
}
|
|
LeakCanary.install(this)
|
|
}
|
|
|
|
checkUseEnglish()
|
|
Stetho.initializeWithDefaults(this)
|
|
}
|
|
}
|