diff --git a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt index 63a380d..fb058f1 100644 --- a/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt +++ b/pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AppConfig.kt @@ -61,6 +61,11 @@ class AppConfig(ctx: Context) : ConfigStore { .remove(PREFS_KEY_LEGACY_AUTOPRINTBADGES) .commit() } + if (!prefs.contains(PREFS_KEY_AUTOPRINTBADGES)) { + prefs.edit() + .putString(PREFS_KEY_AUTOPRINTBADGES, "once") + .commit() + } } override fun isDebug(): Boolean { diff --git a/pretixscan/app/src/main/res/xml/app_restrictions.xml b/pretixscan/app/src/main/res/xml/app_restrictions.xml index e839cf7..391bcf6 100644 --- a/pretixscan/app/src/main/res/xml/app_restrictions.xml +++ b/pretixscan/app/src/main/res/xml/app_restrictions.xml @@ -22,7 +22,7 @@ android:restrictionType="bool" android:title="@string/preference_badgeprint_enable" />