Update Preference Stubs & Update Manamoa extension (#2087)

* Add TwoStatePreference and CheckBoxPreference stubs

* Add setEnabled on Preference, Formatting again.

* Remove isEnabled. Thanks to API difference between androidx and v7 libs

* Initial support of their new site announcing algorithm.

What the heck is DDOS-GUARD

* Apply changes of announcing algorithm that can work with tachi >_<

It will uses main thread that cause temp freeze when enter browse

* Clean up codes little bit.

* Simplify Decoder

* Finalize update.

* Try-Catch on req failed.
* Update build.gradle

* Use regular network client.
This commit is contained in:
DitFranXX
2020-02-01 13:12:34 +09:00
committed by GitHub
parent c86e12aadd
commit 44c1ebba51
9 changed files with 213 additions and 43 deletions

View File

@ -0,0 +1,11 @@
package androidx.preference;
import android.content.Context;
public class CheckBoxPreference extends Preference {
public CheckBoxPreference(Context context) {
throw new RuntimeException("Stub!");
}
}

View File

@ -26,6 +26,10 @@ public class Preference {
throw new RuntimeException("Stub!");
}
public void setEnabled(boolean enabled) {
throw new RuntimeException("Stub!");
}
public String getKey() {
throw new RuntimeException("Stub!");
}

View File

@ -0,0 +1,25 @@
package androidx.preference;
import android.content.Context;
public class TwoStatePreference extends Preference {
public TwoStatePreference(Context context) { throw new RuntimeException("Stub!"); }
public boolean isChecked() { throw new RuntimeException("Stub!"); }
public void setChecked(boolean checked) { throw new RuntimeException("Stub!"); }
public CharSequence getSummaryOn() { throw new RuntimeException("Stub!"); }
public void setSummaryOn(CharSequence summary) { throw new RuntimeException("Stub!"); }
public CharSequence getSummaryOff() { throw new RuntimeException("Stub!"); }
public void setSummaryOff(CharSequence summary) { throw new RuntimeException("Stub!"); }
public boolean getDisableDependentsState() { throw new RuntimeException("Stub!"); }
public void setDisableDependentsState(boolean disableDependentsState) { throw new RuntimeException("Stub!"); }
}