mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
reenable leak canary
This commit is contained in:
parent
92a8d30c1e
commit
15daa64cbd
1 changed files with 4 additions and 2 deletions
|
@ -2,18 +2,20 @@ package com.simplemobiletools.gallery
|
||||||
|
|
||||||
import android.support.multidex.MultiDexApplication
|
import android.support.multidex.MultiDexApplication
|
||||||
import com.github.ajalt.reprint.core.Reprint
|
import com.github.ajalt.reprint.core.Reprint
|
||||||
|
import com.simplemobiletools.gallery.BuildConfig.USE_LEAK_CANARY
|
||||||
import com.simplemobiletools.gallery.extensions.config
|
import com.simplemobiletools.gallery.extensions.config
|
||||||
|
import com.squareup.leakcanary.LeakCanary
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class App : MultiDexApplication() {
|
class App : MultiDexApplication() {
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
/*if (USE_LEAK_CANARY) {
|
if (USE_LEAK_CANARY) {
|
||||||
if (LeakCanary.isInAnalyzerProcess(this)) {
|
if (LeakCanary.isInAnalyzerProcess(this)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
LeakCanary.install(this)
|
LeakCanary.install(this)
|
||||||
}*/
|
}
|
||||||
|
|
||||||
if (config.useEnglish) {
|
if (config.useEnglish) {
|
||||||
val conf = resources.configuration
|
val conf = resources.configuration
|
||||||
|
|
Loading…
Reference in a new issue