Skip to content

Commit 984be36

Browse files
committed
show camera and launcher by default
1 parent 021af53 commit 984be36

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363
}
6464

6565
dependencies {
66-
implementation 'com.github.SimpleMobileTools:Simple-Commons:78b27e9f16'
66+
implementation 'com.github.SimpleMobileTools:Simple-Commons:403f6219e1'
6767
implementation 'androidx.multidex:multidex:2.0.1'
6868
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
6969
}

app/src/main/kotlin/com/simplemobiletools/applauncher/extensions/Resources.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fun Resources.getLauncherDrawable(packageName: String): Drawable {
1717
"com.simplemobiletools.flashlight" -> R.mipmap.ic_flashlight
1818
"com.simplemobiletools.gallery.pro" -> R.mipmap.ic_gallery
1919
"com.simplemobiletools.keyboard" -> R.mipmap.ic_keyboard
20+
"com.simplemobiletools.launcher" -> R.mipmap.ic_simple_launcher
2021
"com.simplemobiletools.musicplayer" -> R.mipmap.ic_music_player
2122
"com.simplemobiletools.notes.pro" -> R.mipmap.ic_notes
2223
"com.simplemobiletools.smsmessenger" -> R.mipmap.ic_sms_messenger

app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/Constants.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ fun getPredefinedPackageNames(): ArrayList<String> {
1212
val packages = arrayListOf(
1313
"com.simplemobiletools.calculator",
1414
"com.simplemobiletools.calendar.pro",
15+
"com.simplemobiletools.camera",
1516
"com.simplemobiletools.contacts.pro",
1617
"com.simplemobiletools.dialer",
1718
"com.simplemobiletools.draw.pro",
1819
"com.simplemobiletools.filemanager.pro",
1920
"com.simplemobiletools.flashlight",
2021
"com.simplemobiletools.gallery.pro",
2122
"com.simplemobiletools.keyboard",
23+
"com.simplemobiletools.launcher",
2224
"com.simplemobiletools.musicplayer",
2325
"com.simplemobiletools.notes.pro",
2426
"com.simplemobiletools.smsmessenger",

app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/DBHelper.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
4343

4444
override fun onCreate(db: SQLiteDatabase) {
4545
db.execSQL(
46-
"CREATE TABLE $MAIN_TABLE_NAME ($COL_ID INTEGER PRIMARY KEY AUTOINCREMENT, $COL_NAME TEXT, $COL_PKG_NAME TEXT UNIQUE, $COL_POSITION INTEGER," +
46+
"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," +
4747
"$COL_WAS_RENAMED INTEGER, $COL_APP_ORDER INTEGER)"
4848
)
4949
if (context.resources.getBoolean(R.bool.add_default_apps)) {
@@ -89,13 +89,15 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
8989
val titles = arrayListOf(
9090
R.string.calculator_short,
9191
R.string.calendar_short,
92+
R.string.camera_short,
9293
R.string.contacts_short,
9394
R.string.dialer_short,
9495
R.string.draw_short,
9596
R.string.file_manager_short,
9697
R.string.flashlight_short,
9798
R.string.gallery_short,
9899
R.string.keyboard_short,
100+
R.string.launcher_short,
99101
R.string.music_player_short,
100102
R.string.notes_short,
101103
R.string.sms_messenger_short,

0 commit comments

Comments
 (0)