Compare string objects with .equals method rather than ==
Change-Id: I6dfcd9e84e3d3519a34f27b2f24196359717b72e
This commit is contained in:
@@ -96,7 +96,7 @@ public class Section {
|
||||
final boolean nullIfDefault) {
|
||||
final String ov = get(name);
|
||||
String nv = ui.readString(ov != null ? ov : dv, "%s", title);
|
||||
if (nullIfDefault && nv == dv) {
|
||||
if (nullIfDefault && nv.equals(dv)) {
|
||||
nv = null;
|
||||
}
|
||||
if (!eq(ov, nv)) {
|
||||
|
Reference in New Issue
Block a user