From 9c6592bcae6a17df603a3162b8d0c8302f5ba54b Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 30 Nov 2017 20:21:35 +0100 Subject: [PATCH] update commons to 3.0.12 --- app/build.gradle | 2 +- .../main/kotlin/com/simplemobiletools/calendar/App.kt | 10 ++-------- .../calendar/activities/MainActivity.kt | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index aad196e34..056d2cb57 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.0.9' + implementation 'com.simplemobiletools:commons:3.0.12' implementation 'joda-time:joda-time:2.9.9' implementation 'com.facebook.stetho:stetho:1.5.0' implementation 'com.android.support:multidex:1.0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/App.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/App.kt index af6b8076c..b41649f77 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/App.kt @@ -3,9 +3,8 @@ package com.simplemobiletools.calendar import android.support.multidex.MultiDexApplication import com.facebook.stetho.Stetho import com.simplemobiletools.calendar.BuildConfig.USE_LEAK_CANARY -import com.simplemobiletools.calendar.extensions.config +import com.simplemobiletools.commons.extensions.checkUseEnglish import com.squareup.leakcanary.LeakCanary -import java.util.* class App : MultiDexApplication() { override fun onCreate() { @@ -17,12 +16,7 @@ class App : MultiDexApplication() { LeakCanary.install(this) } - if (config.useEnglish) { - val conf = resources.configuration - conf.locale = Locale.ENGLISH - resources.updateConfiguration(conf, resources.displayMetrics) - } - + checkUseEnglish() Stetho.initializeWithDefaults(this) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt index ee69337ae..0a791146f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -75,7 +75,7 @@ class MainActivity : SimpleActivity(), NavigationListener { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) - storeStoragePaths() + appLaunched() calendar_fab.setOnClickListener { launchNewEventIntent() } checkWhatsNewDialog()