2017-04-17 20:31:50 +02:00
|
|
|
package com.simplemobiletools.gallery
|
|
|
|
|
2017-11-12 23:59:22 +01:00
|
|
|
import android.support.multidex.MultiDexApplication
|
2017-09-27 21:50:42 +02:00
|
|
|
import com.github.ajalt.reprint.core.Reprint
|
2017-11-30 19:38:07 +01:00
|
|
|
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
2017-11-27 20:32:57 +01:00
|
|
|
import com.squareup.leakcanary.LeakCanary
|
2017-04-17 20:31:50 +02:00
|
|
|
|
2017-11-12 23:59:22 +01:00
|
|
|
class App : MultiDexApplication() {
|
2017-04-17 20:31:50 +02:00
|
|
|
override fun onCreate() {
|
|
|
|
super.onCreate()
|
2017-12-01 23:35:36 +01:00
|
|
|
if (BuildConfig.DEBUG) {
|
2017-07-09 09:28:26 +02:00
|
|
|
if (LeakCanary.isInAnalyzerProcess(this)) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
LeakCanary.install(this)
|
2017-11-27 20:32:57 +01:00
|
|
|
}
|
2017-11-07 17:31:40 +01:00
|
|
|
|
2017-11-30 19:38:07 +01:00
|
|
|
checkUseEnglish()
|
2017-11-07 17:31:40 +01:00
|
|
|
Reprint.initialize(this)
|
2017-04-17 20:31:50 +02:00
|
|
|
}
|
|
|
|
}
|