Stop calling notifyChanged over aggressively in EditTextPreference

This commit is contained in:
Mygod
2017-03-15 19:24:18 +08:00
parent c09a96a203
commit 9617418e70
@@ -60,7 +60,8 @@ class EditTextPreference(context: Context, attrs: AttributeSet = null) extends P
}
override def setText(text: String): Unit = {
val old = getText
super.setText(text)
notifyChanged()
if (old != text) notifyChanged()
}
}