Commit 74b4f274 authored by Max Lv's avatar Max Lv

Avoid to show non-latin numbers in the UI

parent 121f453a
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)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment