Skip to content

Commit bd69af9

Browse files
authored
Merge pull request #119 from kiall/fix-preference-defaults
Fix bug where default preference were not being set
2 parents 431d5c1 + ff3fc1f commit bd69af9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/ie/macinnes/tvheadend/migrate/MigrateUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public static void doMigrate(Context context) {
3535
Log.d(TAG, "doMigrate()");
3636

3737
// Set all default values
38-
PreferenceManager.setDefaultValues(context, R.xml.preferences, false);
38+
PreferenceManager.setDefaultValues(context, Constants.PREFERENCE_TVHEADEND, Context.MODE_PRIVATE,
39+
R.xml.preferences, true);
3940

4041
// Store the current version
4142
int currentApplicationVersion = Constants.MIGRATE_VERSION;

0 commit comments

Comments
 (0)