update commons to 3.0.12

This commit is contained in:
tibbi 2017-11-30 20:21:35 +01:00
parent a6810d2aa6
commit 9c6592bcae
3 changed files with 4 additions and 10 deletions

View File

@ -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'

View File

@ -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)
}
}

View File

@ -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()