Merge "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) {
|
protected boolean persistString(String value) {
|
||||||
if (shouldPersist()) {
|
if (shouldPersist()) {
|
||||||
// Shouldn't store null
|
// Shouldn't store null
|
||||||
if (value == getPersistedString(null)) {
|
if (TextUtils.equals(value, getPersistedString(null))) {
|
||||||
// It's already there, so the same as persisting
|
// It's already there, so the same as persisting
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user