mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-04-02 12:30:54 +02:00
Merge pull request #145 from Naveen3Singh/no_default_apps_in_prepaid
Remove default apps from prepaid variant
This commit is contained in:
commit
ebaaf13ebd
@ -3,4 +3,5 @@
|
||||
<bool name="show_donate_in_about">true</bool>
|
||||
<bool name="hide_google_relations">true</bool>
|
||||
<bool name="pretend_thank_you_installed">true</bool>
|
||||
<bool name="add_default_apps">true</bool>
|
||||
</resources>
|
||||
|
@ -14,7 +14,6 @@ import com.simplemobiletools.applauncher.extensions.isAPredefinedApp
|
||||
import com.simplemobiletools.applauncher.models.AppLauncher
|
||||
import com.simplemobiletools.commons.extensions.getIntValue
|
||||
import com.simplemobiletools.commons.extensions.getStringValue
|
||||
import java.util.*
|
||||
|
||||
class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_VERSION) {
|
||||
private val MAIN_TABLE_NAME = "launchers"
|
||||
@ -46,7 +45,9 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
"CREATE TABLE $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)"
|
||||
)
|
||||
addInitialLaunchers(db)
|
||||
if (context.resources.getBoolean(R.bool.add_default_apps)) {
|
||||
addInitialLaunchers(db)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
|
||||
|
4
app/src/main/res/values/bools.xml
Normal file
4
app/src/main/res/values/bools.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="add_default_apps">true</bool>
|
||||
</resources>
|
@ -4,4 +4,5 @@
|
||||
<bool name="hide_google_relations">true</bool>
|
||||
<bool name="hide_all_external_links">true</bool>
|
||||
<bool name="pretend_thank_you_installed">true</bool>
|
||||
<bool name="add_default_apps">false</bool>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user