This commit is contained in:
M
2020-11-10 01:14:47 +02:00
parent c2e7a854bb
commit 03f47e393c
8 changed files with 121 additions and 83 deletions
+6 -3
View File
@@ -160,9 +160,12 @@ abstract class SettingsStoreBase with Store {
actionListDisplayMode.addAll(deserializeActionlistDisplayModes(
sharedPreferences.getInt(PreferencesKey.displayActionListModeKey) ??
defaultActionsMode));
final pinLength =
sharedPreferences.getInt(PreferencesKey.currentPinLength) ??
defaultPinLength;
var pinLength = sharedPreferences.getInt(PreferencesKey.currentPinLength);
// If no value
if (pinLength == null || pinLength == 0) {
pinLength = defaultPinLength;
}
final savedLanguageCode =
sharedPreferences.getString(PreferencesKey.currentLanguageCode) ??
await LanguageService.localeDetection();