Browse Source

init settingsHelper before setting up CrashReporter

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
5b9354324e
  1. 3
      app/src/main/java/awais/instagrabber/InstaGrabberApplication.kt

3
app/src/main/java/awais/instagrabber/InstaGrabberApplication.kt

@ -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…
Cancel
Save