mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-02-20 21:50:50 +01:00
show camera and launcher by default
This commit is contained in:
parent
021af53745
commit
984be36f98
@ -63,7 +63,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:78b27e9f16'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:403f6219e1'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ fun Resources.getLauncherDrawable(packageName: String): Drawable {
|
||||
"com.simplemobiletools.flashlight" -> R.mipmap.ic_flashlight
|
||||
"com.simplemobiletools.gallery.pro" -> R.mipmap.ic_gallery
|
||||
"com.simplemobiletools.keyboard" -> R.mipmap.ic_keyboard
|
||||
"com.simplemobiletools.launcher" -> R.mipmap.ic_simple_launcher
|
||||
"com.simplemobiletools.musicplayer" -> R.mipmap.ic_music_player
|
||||
"com.simplemobiletools.notes.pro" -> R.mipmap.ic_notes
|
||||
"com.simplemobiletools.smsmessenger" -> R.mipmap.ic_sms_messenger
|
||||
|
@ -12,6 +12,7 @@ fun getPredefinedPackageNames(): ArrayList<String> {
|
||||
val packages = arrayListOf(
|
||||
"com.simplemobiletools.calculator",
|
||||
"com.simplemobiletools.calendar.pro",
|
||||
"com.simplemobiletools.camera",
|
||||
"com.simplemobiletools.contacts.pro",
|
||||
"com.simplemobiletools.dialer",
|
||||
"com.simplemobiletools.draw.pro",
|
||||
@ -19,6 +20,7 @@ fun getPredefinedPackageNames(): ArrayList<String> {
|
||||
"com.simplemobiletools.flashlight",
|
||||
"com.simplemobiletools.gallery.pro",
|
||||
"com.simplemobiletools.keyboard",
|
||||
"com.simplemobiletools.launcher",
|
||||
"com.simplemobiletools.musicplayer",
|
||||
"com.simplemobiletools.notes.pro",
|
||||
"com.simplemobiletools.smsmessenger",
|
||||
|
@ -43,7 +43,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
|
||||
override fun onCreate(db: SQLiteDatabase) {
|
||||
db.execSQL(
|
||||
"CREATE TABLE $MAIN_TABLE_NAME ($COL_ID INTEGER PRIMARY KEY AUTOINCREMENT, $COL_NAME TEXT, $COL_PKG_NAME TEXT UNIQUE, $COL_POSITION INTEGER," +
|
||||
"CREATE TABLE IF NOT EXISTS $MAIN_TABLE_NAME ($COL_ID INTEGER PRIMARY KEY AUTOINCREMENT, $COL_NAME TEXT, $COL_PKG_NAME TEXT UNIQUE, $COL_POSITION INTEGER," +
|
||||
"$COL_WAS_RENAMED INTEGER, $COL_APP_ORDER INTEGER)"
|
||||
)
|
||||
if (context.resources.getBoolean(R.bool.add_default_apps)) {
|
||||
@ -89,6 +89,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
val titles = arrayListOf(
|
||||
R.string.calculator_short,
|
||||
R.string.calendar_short,
|
||||
R.string.camera_short,
|
||||
R.string.contacts_short,
|
||||
R.string.dialer_short,
|
||||
R.string.draw_short,
|
||||
@ -96,6 +97,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
R.string.flashlight_short,
|
||||
R.string.gallery_short,
|
||||
R.string.keyboard_short,
|
||||
R.string.launcher_short,
|
||||
R.string.music_player_short,
|
||||
R.string.notes_short,
|
||||
R.string.sms_messenger_short,
|
||||
|
Loading…
x
Reference in New Issue
Block a user