diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/extensions/Resources.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/extensions/Resources.kt
index 8959f0e..fe00836 100644
--- a/app/src/main/kotlin/com/simplemobiletools/applauncher/extensions/Resources.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/extensions/Resources.kt
@@ -9,6 +9,7 @@ fun Resources.getLauncherDrawable(packageName: String): Drawable {
"com.simplemobiletools.calculator" -> R.drawable.ic_launcher_calculator
"com.simplemobiletools.calendar" -> R.drawable.ic_launcher_calendar
"com.simplemobiletools.camera" -> R.drawable.ic_launcher_camera
+ "com.simplemobiletools.clock" -> R.drawable.ic_launcher_clock
"com.simplemobiletools.contacts" -> R.drawable.ic_launcher_contacts
"com.simplemobiletools.draw" -> R.drawable.ic_launcher_draw
"com.simplemobiletools.filemanager" -> R.drawable.ic_launcher_filemanager
diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/Constants.kt
index 8114557..c93a846 100644
--- a/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/Constants.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/Constants.kt
@@ -4,6 +4,7 @@ val predefinedPackageNames = arrayListOf(
"com.simplemobiletools.calculator",
"com.simplemobiletools.calendar",
"com.simplemobiletools.camera",
+ "com.simplemobiletools.clock",
"com.simplemobiletools.contacts",
"com.simplemobiletools.draw",
"com.simplemobiletools.filemanager",
diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/DBHelper.kt
index 3d7b1e0..9f40517 100644
--- a/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/DBHelper.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/helpers/DBHelper.kt
@@ -24,13 +24,14 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
private val mDb = writableDatabase
companion object {
- private val DB_VERSION = 3
+ private val DB_VERSION = 4
val DB_NAME = "applaunchers.db"
var dbInstance: DBHelper? = null
fun newInstance(context: Context): DBHelper {
- if (dbInstance == null)
+ if (dbInstance == null) {
dbInstance = DBHelper(context)
+ }
return dbInstance!!
}
@@ -46,6 +47,11 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
val contacts = AppLauncher(0, context.getString(R.string.contacts), "com.simplemobiletools.contacts")
addAppLauncher(contacts, db)
}
+
+ if (oldVersion < 4) {
+ val clock = AppLauncher(0, context.getString(R.string.clock), "com.simplemobiletools.clock")
+ addAppLauncher(clock, db)
+ }
}
private fun addInitialLaunchers(db: SQLiteDatabase) {
@@ -53,6 +59,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
R.string.calculator,
R.string.calendar,
R.string.camera,
+ R.string.clock,
R.string.contacts,
R.string.draw,
R.string.file_manager,
diff --git a/app/src/main/res/drawable-hdpi/ic_launcher_clock.png b/app/src/main/res/drawable-hdpi/ic_launcher_clock.png
new file mode 100644
index 0000000..5a79198
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_launcher_clock.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_launcher_clock.png b/app/src/main/res/drawable-xhdpi/ic_launcher_clock.png
new file mode 100644
index 0000000..2fb3b90
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_launcher_clock.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_launcher_clock.png b/app/src/main/res/drawable-xxhdpi/ic_launcher_clock.png
new file mode 100644
index 0000000..88f129b
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_launcher_clock.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_launcher_clock.png b/app/src/main/res/drawable-xxxhdpi/ic_launcher_clock.png
new file mode 100644
index 0000000..384e4f9
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_launcher_clock.png differ
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index eebde9f..a4545a5 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -8,6 +8,7 @@
الحاسبة
التقويم
الكاميرا
+ Clock
Contacts
رسم
مدير الملفات
@@ -21,7 +22,7 @@
حافظة بسيطة لإختصارات لتطبيقاتك المفضلة
يمكنك و بسهولة إضافة أي اختصار لتشغيل التطبيق، لذلك لن تضطر مرة أخرى إلى السحب خلال تطبيقات عديمة الفائدة للعثور على التطبيق الذي تحتاج إليه. يمكنك أيضا إعادة تسمية الإختصارات كما يحلو لك. انها ليست واجهة كاملة لاستبدال الشاشة الرئيسية الحالية ، وانما هي مجرد درج للتطبيقات المفضلة لديك. لا يحتوي على إعلانات أو أذونات لا حاجة لها. وكذلك مفتوح المصدر ، ويوفر الألوان للتخصيص. هذا التطبيق هو مجرد قطعة واحدة من سلسلة أكبر من التطبيقات. يمكنك العثور على بقيتها هنا\n
- http://www.simplemobiletools.com
+ https://www.simplemobiletools.com