Skip to content

Commit eb697c3

Browse files
committed
Add default activity customizations (fixes Instagram, more later)
1 parent 0a58cc6 commit eb697c3

File tree

1 file changed

+11
-0
lines changed
  • app/src/main/java/de/Maxr1998/xposed/maxlock/ui/settings

1 file changed

+11
-0
lines changed

app/src/main/java/de/Maxr1998/xposed/maxlock/ui/settings/Startup.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ class Startup(context: Context) : AsyncTaskLoader<Void>(context) {
5959
.putBoolean(Common.ENABLE_IMOD_DELAY_GLOBAL, false).apply()
6060
}
6161

62+
// Default activity customizations
63+
val prefsApps = MLPreferences.getPrefsApps(context)
64+
val prefsAppsEditor = prefsApps.edit()
65+
arrayOf(
66+
"com.instagram.mainactivity.MainTabActivity"
67+
).forEach {
68+
if (!prefsApps.contains(it))
69+
prefsAppsEditor.putBoolean(it, false)
70+
}
71+
prefsAppsEditor.apply()
72+
6273
// Clean up
6374
val backgroundFolder = File(Util.dataDir(context), "background")
6475
if (backgroundFolder.exists()) {

0 commit comments

Comments
 (0)