Update MSM Extension. (#1061)

* Improve Preference-stub

* Re-arrange some stubs to correct class.
* Add `EditTextPreference`.

* Update MSM extension.

* Update filter.
* Fix image fetch due to site changes (v4 -> v11)
* Add BaseUrl Override for site domain changes.
  - Korean sources are change domain every 1-2 weeks due to internet censorship.

* Add missing file `EditTextPreference.java`

* Fix tags.
This commit is contained in:
DitFranXX
2019-04-27 23:40:07 +09:00
committed by Eugene
parent 47e9e9389d
commit 9105f9aef8
7 changed files with 186 additions and 74 deletions

View File

@ -4,4 +4,20 @@ package android.support.v7.preference;
* Created by Carlos on 5/9/2018.
*/
public abstract class DialogPreference extends Preference {}
public abstract class DialogPreference extends Preference {
public CharSequence getDialogTitle() {
throw new RuntimeException("Stub!");
}
public void setDialogTitle(CharSequence dialogTitle) {
throw new RuntimeException("Stub!");
}
public CharSequence getDialogMessage() {
throw new RuntimeException("Stub!");
}
public void setDialogMessage(CharSequence dialogMessage) {
throw new RuntimeException("Stub!");
}
}

View File

@ -0,0 +1,17 @@
package android.support.v7.preference;
import android.content.Context;
public class EditTextPreference extends DialogPreference {
public EditTextPreference(Context context) {
throw new RuntimeException("Stub!");
}
public String getText() {
throw new RuntimeException("Stub!");
}
public void setText(String text) {
throw new RuntimeException("Stub!");
}
}

View File

@ -12,27 +12,12 @@ public class ListPreference extends Preference {
throw new RuntimeException("Stub!");
}
public CharSequence getTitle() {
throw new RuntimeException("Stub!");
}
public void setTitle(CharSequence title) {
throw new RuntimeException("Stub!");
}
public void setEntries(CharSequence[] entries) {
throw new RuntimeException("Stub!");
}
public CharSequence[] getEntries() {
throw new RuntimeException("Stub!");
}
public void setOnPreferenceChangeListener(OnPreferenceChangeListener onPreferenceChangeListener) {
throw new RuntimeException("Stub!");
}
public int findIndexOfValue(String value) {
@ -58,12 +43,4 @@ public class ListPreference extends Preference {
public void setValue(String value) {
throw new RuntimeException("Stub!");
}
public void setSummary(CharSequence summary) {
throw new RuntimeException("Stub!");
}
public CharSequence getSummary() {
throw new RuntimeException("Stub!");
}
}

View File

@ -9,6 +9,26 @@ public class Preference {
boolean onPreferenceChange(Preference preference, Object newValue);
}
public void setOnPreferenceChangeListener(OnPreferenceChangeListener onPreferenceChangeListener) {
throw new RuntimeException("Stub!");
}
public void setOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener) {
throw new RuntimeException("Stub!");
}
public CharSequence getTitle() {
throw new RuntimeException("Stub!");
}
public void setTitle(CharSequence title) {
throw new RuntimeException("Stub!");
}
public CharSequence getSummary() {
throw new RuntimeException("Stub!");
}
public void setKey(String key) {
throw new RuntimeException("Stub!");
}
@ -16,4 +36,16 @@ public class Preference {
public String getKey() {
throw new RuntimeException("Stub!");
}
public void setSummary(CharSequence summary) {
throw new RuntimeException("Stub!");
}
public void setDefaultValue(Object defaultValue) {
throw new RuntimeException("Stub!");
}
public interface OnPreferenceClickListener {
boolean onPreferenceClick(Preference preference);
}
}