Skip to content

Commit

Permalink
Add default activity customizations (fixes Instagram, more later)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 committed Nov 16, 2017
1 parent 0a58cc6 commit eb697c3
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ class Startup(context: Context) : AsyncTaskLoader<Void>(context) {
.putBoolean(Common.ENABLE_IMOD_DELAY_GLOBAL, false).apply()
}

// Default activity customizations
val prefsApps = MLPreferences.getPrefsApps(context)
val prefsAppsEditor = prefsApps.edit()
arrayOf(
"com.instagram.mainactivity.MainTabActivity"
).forEach {
if (!prefsApps.contains(it))
prefsAppsEditor.putBoolean(it, false)
}
prefsAppsEditor.apply()

// Clean up
val backgroundFolder = File(Util.dataDir(context), "background")
if (backgroundFolder.exists()) {
Expand Down

0 comments on commit eb697c3

Please sign in to comment.