Skip to content

Commit 825542d

Browse files
committed
Use new switch on key
1 parent e9c8e7e commit 825542d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/yyxx/wechatfp/util/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ private Config(Context context) {
4747
}
4848

4949
public boolean isOn() {
50-
return mCache.sharedPreferences.getBoolean("switch_on", false);
50+
return mCache.sharedPreferences.getBoolean("switch_on1", false);
5151
}
5252

5353
public void setOn(boolean on) {
54-
mCache.sharedPreferences.edit().putBoolean("switch_on", on).apply();
54+
mCache.sharedPreferences.edit().putBoolean("switch_on1", on).apply();
5555
}
5656

5757
@Nullable

0 commit comments

Comments
 (0)