mirror of https://github.com/M66B/FairEmail.git
Improved handling of unknown settings types
This commit is contained in:
parent
826e072595
commit
2d685e9201
|
@ -1187,8 +1187,14 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
|
||||||
editor.putLong(key, (Long) value);
|
editor.putLong(key, (Long) value);
|
||||||
else if (value instanceof String)
|
else if (value instanceof String)
|
||||||
editor.putString(key, (String) value);
|
editor.putString(key, (String) value);
|
||||||
else
|
else {
|
||||||
throw new IllegalArgumentException("Unknown settings type key=" + key);
|
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);
|
Log.i("Imported setting=" + key);
|
||||||
|
|
Loading…
Reference in New Issue