support ListPreference

This commit is contained in:
Aria Moradi
2021-07-31 07:59:05 +04:30
parent b7a6d6cae8
commit 345ca27f85

View File

@@ -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!");
}
}