Fix incorrect handling of default values on database upgrade

This commit is contained in:
Mygod
2016-08-09 04:34:51 +08:00
parent 3cc1a1602e
commit 984e75ae99
4 changed files with 13 additions and 9 deletions
@@ -36,10 +36,8 @@ object ShadowsocksSettings {
}
def updateSummaryEditTextPreference(pref: Preference, value: String) {
if (value != null) {
pref.setSummary(value)
pref.asInstanceOf[SummaryEditTextPreference].setText(value)
}
pref.setSummary(value)
pref.asInstanceOf[SummaryEditTextPreference].setText(value)
}
def updateSwitchPreference(pref: Preference, value: Boolean) {