* commit 'd7fb6d26d809775996f70e23213392a3dcf10c8f': Frameworks/base: Change String == to equals in Preference
This commit is contained in:
@@ -1426,7 +1426,7 @@ public class Preference implements Comparable<Preference> {
|
||||
protected boolean persistString(String value) {
|
||||
if (shouldPersist()) {
|
||||
// Shouldn't store null
|
||||
if (value == getPersistedString(null)) {
|
||||
if (TextUtils.equals(value, getPersistedString(null))) {
|
||||
// It's already there, so the same as persisting
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user