mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-24 13:38:01 +01:00
19 lines
485 B
Kotlin
19 lines
485 B
Kotlin
package com.simplemobiletools.gallery
|
|
|
|
import android.app.Application
|
|
import com.github.ajalt.reprint.core.Reprint
|
|
import com.squareup.leakcanary.LeakCanary
|
|
|
|
class App : Application() {
|
|
val USE_LEAK_CANARY = false
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
Reprint.initialize(this)
|
|
if (USE_LEAK_CANARY) {
|
|
if (LeakCanary.isInAnalyzerProcess(this)) {
|
|
return
|
|
}
|
|
LeakCanary.install(this)
|
|
}
|
|
}
|
|
}
|