bump version
This commit is contained in:
@@ -128,7 +128,11 @@ object Shadowsocks {
|
||||
// Helper functions
|
||||
def updateListPreference(pref: Preference, value: String) {
|
||||
pref.asInstanceOf[ListPreference].setValue(value)
|
||||
pref.setSummary(pref.asInstanceOf[ListPreference].getEntry)
|
||||
val entry = pref.asInstanceOf[ListPreference].getEntry
|
||||
if (entry != null)
|
||||
pref.setSummary(entry)
|
||||
else
|
||||
pref.setSummary(value)
|
||||
}
|
||||
|
||||
def updatePasswordEditTextPreference(pref: Preference, value: String) {
|
||||
|
||||
@@ -48,7 +48,11 @@ class SummaryListPreference(context: Context, attrs: AttributeSet)
|
||||
|
||||
override def setValue(text: String) {
|
||||
super.setValue(text)
|
||||
setSummary(getEntry)
|
||||
val entry = getEntry
|
||||
if (entry != null)
|
||||
setSummary(entry)
|
||||
else
|
||||
setSummary(text)
|
||||
}
|
||||
|
||||
override def setSummary(summary: CharSequence) {
|
||||
|
||||
Reference in New Issue
Block a user