mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-23 05:16:58 +00:00
init settingsHelper before setting up CrashReporter
This commit is contained in:
parent
c9f1e2eff4
commit
5b9354324e
@ -17,17 +17,16 @@ import java.net.CookieHandler
|
||||
import java.time.format.DateTimeFormatter
|
||||
import java.util.*
|
||||
|
||||
|
||||
@Suppress("unused")
|
||||
class InstaGrabberApplication : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
CookieHandler.setDefault(NET_COOKIE_MANAGER)
|
||||
settingsHelper = SettingsHelper(this)
|
||||
setupCrashReporter()
|
||||
setupCloseGuard()
|
||||
setupFresco()
|
||||
Utils.cacheDir = cacheDir.absolutePath
|
||||
settingsHelper = SettingsHelper(this)
|
||||
Utils.clipboardManager = getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
||||
LocaleUtils.setLocale(baseContext)
|
||||
val pattern = if (settingsHelper.getBoolean(CUSTOM_DATE_TIME_FORMAT_ENABLED)) {
|
||||
|
Loading…
Reference in New Issue
Block a user