FossifyGallery/app/src/main/kotlin/com/simplemobiletools/gallery/App.kt

26 lines
724 B
Kotlin
Raw Normal View History

package com.simplemobiletools.gallery
2017-11-12 23:59:22 +01:00
import android.support.multidex.MultiDexApplication
import com.github.ajalt.reprint.core.Reprint
import com.simplemobiletools.gallery.extensions.config
import java.util.*
2017-11-12 23:59:22 +01:00
class App : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
2017-11-23 09:43:14 +01:00
/*if (USE_LEAK_CANARY) {
if (LeakCanary.isInAnalyzerProcess(this)) {
return
}
LeakCanary.install(this)
2017-11-23 09:43:14 +01:00
}*/
2017-11-07 17:31:40 +01:00
if (config.useEnglish) {
val conf = resources.configuration
conf.locale = Locale.ENGLISH
resources.updateConfiguration(conf, resources.displayMetrics)
}
2017-11-07 17:31:40 +01:00
Reprint.initialize(this)
}
}