mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-09 19:52:12 +00:00
change type to int
This commit is contained in:
parent
15237d5f79
commit
d5c4bd0236
1 changed files with 3 additions and 3 deletions
|
@ -217,7 +217,7 @@ class BackupService {
|
||||||
final fiatApiMode = data[PreferencesKey.currentFiatApiModeKey] as int?;
|
final fiatApiMode = data[PreferencesKey.currentFiatApiModeKey] as int?;
|
||||||
final currentPinLength = data[PreferencesKey.currentPinLength] as int?;
|
final currentPinLength = data[PreferencesKey.currentPinLength] as int?;
|
||||||
final currentTheme = data[PreferencesKey.currentTheme] as int?;
|
final currentTheme = data[PreferencesKey.currentTheme] as int?;
|
||||||
final exchangeStatus = data[PreferencesKey.exchangeStatusKey] as bool?;
|
final exchangeStatus = data[PreferencesKey.exchangeStatusKey] as int?;
|
||||||
final currentDefaultSettingsMigrationVersion = data[PreferencesKey.currentDefaultSettingsMigrationVersion] as int?;
|
final currentDefaultSettingsMigrationVersion = data[PreferencesKey.currentDefaultSettingsMigrationVersion] as int?;
|
||||||
final moneroTransactionPriority = data[PreferencesKey.moneroTransactionPriority] as int?;
|
final moneroTransactionPriority = data[PreferencesKey.moneroTransactionPriority] as int?;
|
||||||
final bitcoinTransactionPriority = data[PreferencesKey.bitcoinTransactionPriority] as int?;
|
final bitcoinTransactionPriority = data[PreferencesKey.bitcoinTransactionPriority] as int?;
|
||||||
|
@ -281,7 +281,7 @@ class BackupService {
|
||||||
PreferencesKey.currentTheme, currentTheme);
|
PreferencesKey.currentTheme, currentTheme);
|
||||||
|
|
||||||
if (exchangeStatus != null)
|
if (exchangeStatus != null)
|
||||||
await _sharedPreferences.setBool(
|
await _sharedPreferences.setInt(
|
||||||
PreferencesKey.exchangeStatusKey, exchangeStatus);
|
PreferencesKey.exchangeStatusKey, exchangeStatus);
|
||||||
|
|
||||||
if (currentDefaultSettingsMigrationVersion != null)
|
if (currentDefaultSettingsMigrationVersion != null)
|
||||||
|
@ -432,7 +432,7 @@ class BackupService {
|
||||||
PreferencesKey.currentTheme:
|
PreferencesKey.currentTheme:
|
||||||
_sharedPreferences.getInt(PreferencesKey.currentTheme),
|
_sharedPreferences.getInt(PreferencesKey.currentTheme),
|
||||||
PreferencesKey.exchangeStatusKey:
|
PreferencesKey.exchangeStatusKey:
|
||||||
_sharedPreferences.getBool(PreferencesKey.exchangeStatusKey),
|
_sharedPreferences.getInt(PreferencesKey.exchangeStatusKey),
|
||||||
PreferencesKey.currentDefaultSettingsMigrationVersion: _sharedPreferences
|
PreferencesKey.currentDefaultSettingsMigrationVersion: _sharedPreferences
|
||||||
.getInt(PreferencesKey.currentDefaultSettingsMigrationVersion),
|
.getInt(PreferencesKey.currentDefaultSettingsMigrationVersion),
|
||||||
PreferencesKey.bitcoinTransactionPriority:
|
PreferencesKey.bitcoinTransactionPriority:
|
||||||
|
|
Loading…
Reference in a new issue