From f5a433f58a5191efd1deeac80319b00c588729cc Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 21 May 2018 23:46:56 +0200 Subject: [PATCH] update commons to 4.0.22 --- app/build.gradle | 2 +- .../flashlight/activities/MainActivity.kt | 2 +- .../flashlight/activities/SimpleActivity.kt | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 689ae56..495ef79 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -41,7 +41,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:3.19.0' + implementation 'com.simplemobiletools:commons:4.0.22' implementation 'com.squareup:otto:1.3.8' implementation 'com.android.support.constraint:constraint-layout:1.1.0' } diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt index 7695cc2..36c212b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt @@ -36,7 +36,7 @@ class MainActivity : SimpleActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) - appLaunched() + appLaunched(BuildConfig.APPLICATION_ID) mBus = BusProvider.instance changeIconColor(config.backgroundColor.getContrastColor(), stroboscope_btn) diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/SimpleActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/SimpleActivity.kt index aaff16c..64c1bd0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/SimpleActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/SimpleActivity.kt @@ -1,5 +1,12 @@ package com.simplemobiletools.flashlight.activities import com.simplemobiletools.commons.activities.BaseSimpleActivity +import com.simplemobiletools.flashlight.R -open class SimpleActivity : BaseSimpleActivity() +open class SimpleActivity : BaseSimpleActivity() { + override fun getAppIconIDs() = arrayListOf( + R.mipmap.ic_launcher + ) + + override fun getAppLauncherName() = getString(R.string.app_launcher_name) +}