create SimpleActivity
This commit is contained in:
parent
f60658b412
commit
6c97150caa
|
@ -1,13 +1,15 @@
|
||||||
package com.simplemobiletools.keyboard.activities
|
package com.simplemobiletools.keyboard.activities
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import com.simplemobiletools.commons.extensions.appLaunched
|
||||||
|
import com.simplemobiletools.keyboard.BuildConfig
|
||||||
import com.simplemobiletools.keyboard.R
|
import com.simplemobiletools.keyboard.R
|
||||||
|
|
||||||
class MainActivity : AppCompatActivity() {
|
class MainActivity : SimpleActivity() {
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
appLaunched(BuildConfig.APPLICATION_ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.simplemobiletools.keyboard.activities
|
||||||
|
|
||||||
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
|
import com.simplemobiletools.keyboard.R
|
||||||
|
|
||||||
|
open class SimpleActivity : BaseSimpleActivity() {
|
||||||
|
override fun getAppIconIDs() = arrayListOf(
|
||||||
|
R.mipmap.ic_launcher_red,
|
||||||
|
R.mipmap.ic_launcher_pink,
|
||||||
|
R.mipmap.ic_launcher_purple,
|
||||||
|
R.mipmap.ic_launcher_deep_purple,
|
||||||
|
R.mipmap.ic_launcher_indigo,
|
||||||
|
R.mipmap.ic_launcher_blue,
|
||||||
|
R.mipmap.ic_launcher_light_blue,
|
||||||
|
R.mipmap.ic_launcher_cyan,
|
||||||
|
R.mipmap.ic_launcher_teal,
|
||||||
|
R.mipmap.ic_launcher_green,
|
||||||
|
R.mipmap.ic_launcher_light_green,
|
||||||
|
R.mipmap.ic_launcher_lime,
|
||||||
|
R.mipmap.ic_launcher_yellow,
|
||||||
|
R.mipmap.ic_launcher_amber,
|
||||||
|
R.mipmap.ic_launcher,
|
||||||
|
R.mipmap.ic_launcher_deep_orange,
|
||||||
|
R.mipmap.ic_launcher_brown,
|
||||||
|
R.mipmap.ic_launcher_blue_grey,
|
||||||
|
R.mipmap.ic_launcher_grey_black
|
||||||
|
)
|
||||||
|
|
||||||
|
override fun getAppLauncherName() = getString(R.string.app_launcher_name)
|
||||||
|
}
|
Loading…
Reference in New Issue