mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2026-01-18 17:52:36 +01:00
fix HentaiHand preferences
This commit is contained in:
40
AndroidCompat/src/main/java/android/widget/EditText.java
Normal file
40
AndroidCompat/src/main/java/android/widget/EditText.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package android.widget;
|
||||
|
||||
/*
|
||||
* 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/. */
|
||||
|
||||
public class EditText {
|
||||
public EditText(android.content.Context context) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public EditText(android.content.Context context, android.util.AttributeSet attrs) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public EditText(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public EditText(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public boolean getFreezesText() { throw new RuntimeException("Stub!"); }
|
||||
|
||||
protected boolean getDefaultEditable() { throw new RuntimeException("Stub!"); }
|
||||
|
||||
protected android.text.method.MovementMethod getDefaultMovementMethod() { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public android.text.Editable getText() { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public void setText(java.lang.CharSequence text, android.widget.TextView.BufferType type) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public void setSelection(int start, int stop) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public void setSelection(int index) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public void selectAll() { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public void extendSelection(int index) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public void setEllipsize(android.text.TextUtils.TruncateAt ellipsis) { throw new RuntimeException("Stub!"); }
|
||||
|
||||
public java.lang.CharSequence getAccessibilityClassName() { throw new RuntimeException("Stub!"); }
|
||||
}
|
||||
@@ -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