mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-03-04 11:28:07 +01:00
adding Simple Keyboard
This commit is contained in:
parent
da2f8e6cb2
commit
3c8e85245e
@ -62,7 +62,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:fe2610738c'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:a8b9cfb985'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ fun Resources.getLauncherDrawable(packageName: String): Drawable {
|
||||
"com.simplemobiletools.filemanager.pro" -> R.mipmap.ic_file_manager
|
||||
"com.simplemobiletools.flashlight" -> R.mipmap.ic_flashlight
|
||||
"com.simplemobiletools.gallery.pro" -> R.mipmap.ic_gallery
|
||||
"com.simplemobiletools.keyboard" -> R.mipmap.ic_keyboard
|
||||
"com.simplemobiletools.musicplayer" -> R.mipmap.ic_music_player
|
||||
"com.simplemobiletools.notes.pro" -> R.mipmap.ic_notes
|
||||
"com.simplemobiletools.smsmessenger" -> R.mipmap.ic_sms_messenger
|
||||
|
@ -13,6 +13,7 @@ val predefinedPackageNames = arrayListOf(
|
||||
"com.simplemobiletools.filemanager.pro",
|
||||
"com.simplemobiletools.flashlight",
|
||||
"com.simplemobiletools.gallery.pro",
|
||||
"com.simplemobiletools.keyboard",
|
||||
"com.simplemobiletools.musicplayer",
|
||||
"com.simplemobiletools.notes.pro",
|
||||
"com.simplemobiletools.smsmessenger",
|
||||
|
@ -28,7 +28,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
private val mDb = writableDatabase
|
||||
|
||||
companion object {
|
||||
private const val DB_VERSION = 7
|
||||
private const val DB_VERSION = 8
|
||||
val DB_NAME = "applaunchers.db"
|
||||
var dbInstance: DBHelper? = null
|
||||
|
||||
@ -76,6 +76,11 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
addAppLauncher(smsMessenger, db)
|
||||
addAppLauncher(voiceRecorder, db)
|
||||
}
|
||||
|
||||
if (oldVersion < 8) {
|
||||
val keyboard = AppLauncher(0, context.getString(R.string.keyboard_short), "com.simplemobiletools.keyboard", 0)
|
||||
addAppLauncher(keyboard, db)
|
||||
}
|
||||
}
|
||||
|
||||
private fun addInitialLaunchers(db: SQLiteDatabase) {
|
||||
@ -88,6 +93,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
R.string.file_manager_short,
|
||||
R.string.flashlight_short,
|
||||
R.string.gallery_short,
|
||||
R.string.keyboard_short,
|
||||
R.string.music_player_short,
|
||||
R.string.notes_short,
|
||||
R.string.sms_messenger_short,
|
||||
|
Loading…
x
Reference in New Issue
Block a user