mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2026-01-19 18:22:34 +01:00
fix HentaiHand preferences
This commit is contained in:
@@ -7,7 +7,11 @@ package androidx.preference;
|
||||
* 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.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.content.Context;
|
||||
import android.widget.EditText;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
public class EditTextPreference extends Preference {
|
||||
// reference: https://android.googlesource.com/platform/frameworks/support/+/996971f962fcd554339a7cb2859cef9ca89dbcb7/preference/preference/src/main/java/androidx/preference/EditTextPreference.java
|
||||
@@ -16,6 +20,9 @@ public class EditTextPreference extends Preference {
|
||||
private CharSequence dialogTitle;
|
||||
private CharSequence dialogMessage;
|
||||
|
||||
@JsonIgnore
|
||||
private OnBindEditTextListener onBindEditTextListener;
|
||||
|
||||
public EditTextPreference(Context context) {
|
||||
super(context);
|
||||
}
|
||||
@@ -43,4 +50,16 @@ public class EditTextPreference extends Preference {
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public OnBindEditTextListener getOnBindEditTextListener() {
|
||||
return onBindEditTextListener;
|
||||
}
|
||||
|
||||
public void setOnBindEditTextListener(@Nullable OnBindEditTextListener onBindEditTextListener) {
|
||||
this.onBindEditTextListener = onBindEditTextListener;
|
||||
}
|
||||
|
||||
public interface OnBindEditTextListener {
|
||||
void onBindEditText(@NonNull EditText editText);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user