api-impl: misc stubs and fixes for several apps including F-Droid and AuroraStore

This commit is contained in:
Julian Winkler
2025-03-25 19:24:06 +01:00
parent 7b0341123b
commit 4a4b4a4722
36 changed files with 296 additions and 27 deletions

View File

@@ -13,6 +13,7 @@ public class ProgressBar extends View {
protected int progress = 0;
private boolean indeterminate = false;
private Drawable indeterminateDrawable;
private Drawable progressDrawable = new Drawable();
public ProgressBar(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
@@ -58,13 +59,7 @@ public class ProgressBar extends View {
public Drawable getProgressDrawable() {
return new Drawable() {
@Override
public void draw(Canvas canvas) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'draw'");
}
};
return progressDrawable;
}
public Drawable getIndeterminateDrawable() {
@@ -103,7 +98,8 @@ public class ProgressBar extends View {
this.indeterminateDrawable = indeterminateDrawable;
}
public void setProgressDrawable(Drawable indeterminateDrawable) {
public void setProgressDrawable(Drawable progressDrawable) {
this.progressDrawable = progressDrawable;
}
public native void native_setIndeterminate(boolean indeterminate);