mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
adding Leak Canary
This commit is contained in:
@ -2,10 +2,18 @@ package com.simplemobiletools.contacts
|
||||
|
||||
import android.app.Application
|
||||
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
||||
import com.squareup.leakcanary.LeakCanary
|
||||
|
||||
class App : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
if (BuildConfig.DEBUG) {
|
||||
if (LeakCanary.isInAnalyzerProcess(this)) {
|
||||
return
|
||||
}
|
||||
LeakCanary.install(this)
|
||||
}
|
||||
|
||||
checkUseEnglish()
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||
selection += " AND ${ContactsContract.RawContacts.ACCOUNT_NAME} IN ($questionMarks)"
|
||||
selectionArgs += sources.toTypedArray()
|
||||
}
|
||||
|
||||
val sortOrder = getSortString()
|
||||
var cursor: Cursor? = null
|
||||
try {
|
||||
|
Reference in New Issue
Block a user