diff --git a/AndroidCompat/src/main/java/androidx/preference/ListPreference.java b/AndroidCompat/src/main/java/androidx/preference/ListPreference.java new file mode 100644 index 00000000..96993933 --- /dev/null +++ b/AndroidCompat/src/main/java/androidx/preference/ListPreference.java @@ -0,0 +1,46 @@ +package androidx.preference; + +/* + * Copyright (C) Contributors to the Suwayomi project + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +import android.content.Context; +import androidx.annotation.ArrayRes; + +public class ListPreference extends Preference { + // reference: https://android.googlesource.com/platform/frameworks/support/+/996971f962fcd554339a7cb2859cef9ca89dbcb7/preference/preference/src/main/java/androidx/preference/ListPreference.java + + private CharSequence[] entries; + private CharSequence[] entryValues; + + public ListPreference(Context context) { + super(context); + } + + public CharSequence[] getEntries() { + return entries; + } + + public void setEntries(CharSequence[] entries) { + this.entries = entries; + } + + public void setEntries(@ArrayRes int entriesResId) { + throw new RuntimeException("Stub!"); + } + + public CharSequence[] getEntryValues() { + return entryValues; + } + + public void setEntryValues(CharSequence[] entryValues) { + this.entryValues = entryValues; + } + + public void setEntryValues(@ArrayRes int entryValuesResId) { + throw new RuntimeException("Stub!"); + } +}