mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Add enabled preference setting (#1539)
* Add enabled preference setting * Don't change preference if its not enabled
This commit is contained in:
@@ -23,6 +23,7 @@ public class Preference {
|
||||
protected Context context;
|
||||
|
||||
private boolean isVisible;
|
||||
private boolean isEnabled = true;
|
||||
private String key;
|
||||
private CharSequence title;
|
||||
private CharSequence summary;
|
||||
@@ -68,7 +69,11 @@ public class Preference {
|
||||
}
|
||||
|
||||
public void setEnabled(boolean enabled) {
|
||||
throw new RuntimeException("Stub!");
|
||||
isEnabled = enabled;
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return isEnabled;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
|
||||
Reference in New Issue
Block a user