mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Improved handling of unknown settings types
This commit is contained in:
parent
826e072595
commit
2d685e9201
1 changed files with 8 additions and 2 deletions
|
@ -1187,8 +1187,14 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
|
|||
editor.putLong(key, (Long) value);
|
||||
else if (value instanceof String)
|
||||
editor.putString(key, (String) value);
|
||||
else
|
||||
throw new IllegalArgumentException("Unknown settings type key=" + key);
|
||||
else {
|
||||
String msg = "Unknown settings type" +
|
||||
" key=" + key +
|
||||
" value=" + value +
|
||||
" type=" + (value == null ? null : value.getClass());
|
||||
Log.e(msg);
|
||||
postProgress(msg);
|
||||
}
|
||||
}
|
||||
|
||||
Log.i("Imported setting=" + key);
|
||||
|
|
Loading…
Reference in a new issue