diff --git a/AndroidCompat/src/main/java/androidx/preference/TwoStatePreference.java b/AndroidCompat/src/main/java/androidx/preference/TwoStatePreference.java index 1e83aae2..adad3796 100644 --- a/AndroidCompat/src/main/java/androidx/preference/TwoStatePreference.java +++ b/AndroidCompat/src/main/java/androidx/preference/TwoStatePreference.java @@ -8,25 +8,35 @@ package androidx.preference; * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import android.content.Context; +import com.fasterxml.jackson.annotation.JsonIgnore; public class TwoStatePreference extends Preference { + // Note: remove @JsonIgnore and implement methods if any extension ever uses these methods or the variables behind them public TwoStatePreference(Context context) { super(context); } + @JsonIgnore public boolean isChecked() { throw new RuntimeException("Stub!"); } + @JsonIgnore public void setChecked(boolean checked) { throw new RuntimeException("Stub!"); } + @JsonIgnore public CharSequence getSummaryOn() { throw new RuntimeException("Stub!"); } + @JsonIgnore public void setSummaryOn(CharSequence summary) { throw new RuntimeException("Stub!"); } + @JsonIgnore public CharSequence getSummaryOff() { throw new RuntimeException("Stub!"); } + @JsonIgnore public void setSummaryOff(CharSequence summary) { throw new RuntimeException("Stub!"); } + @JsonIgnore public boolean getDisableDependentsState() { throw new RuntimeException("Stub!"); } + @JsonIgnore public void setDisableDependentsState(boolean disableDependentsState) { throw new RuntimeException("Stub!"); } /** Tachidesk specific API */