Avoid to show non-latin numbers in the UI

This commit is contained in:
Max Lv
2015-12-20 16:58:54 +08:00
parent 121f453aaa
commit 74b4f27428
@@ -1,5 +1,7 @@
package com.github.shadowsocks.preferences
import java.util.Locale
import android.preference.Preference
/**
@@ -15,5 +17,5 @@ trait SummaryPreference extends Preference {
*
* @return the summary with appropriate string substitution
*/
override def getSummary = String.format(super.getSummary.toString, getSummaryValue)
override def getSummary = super.getSummary.toString.formatLocal(Locale.ENGLISH, getSummaryValue)
}