From c5b67785a6d48a6f464410695ca47b4d012af5d9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 30 Nov 2017 19:38:07 +0100 Subject: [PATCH] update commons to 3.0.12 --- app/build.gradle | 2 +- app/src/main/kotlin/com/simplemobiletools/gallery/App.kt | 9 ++------- .../simplemobiletools/gallery/activities/MainActivity.kt | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index fbad76fa5..a08b9bb68 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 'com.davemorrissey.labs:subsampling-scale-image-view:3.8.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.4.0' implementation 'com.android.support:multidex:1.0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/App.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/App.kt index 361504972..2099d83cc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/App.kt @@ -2,10 +2,9 @@ package com.simplemobiletools.gallery import android.support.multidex.MultiDexApplication import com.github.ajalt.reprint.core.Reprint +import com.simplemobiletools.commons.extensions.checkUseEnglish import com.simplemobiletools.gallery.BuildConfig.USE_LEAK_CANARY -import com.simplemobiletools.gallery.extensions.config import com.squareup.leakcanary.LeakCanary -import java.util.* class App : MultiDexApplication() { override fun onCreate() { @@ -17,11 +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() Reprint.initialize(this) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 1337bf98e..2cfd99759 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -68,7 +68,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) - storeStoragePaths() + appLaunched() mIsPickImageIntent = isPickImageIntent(intent) mIsPickVideoIntent = isPickVideoIntent(intent)