You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: add misc APIs needed for AntennaPod
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
@@ -16,16 +15,12 @@ public abstract class AbsSeekBar extends ProgressBar {
|
||||
}
|
||||
|
||||
public Drawable getThumb() {
|
||||
return new Drawable() {
|
||||
@Override
|
||||
public void draw(Canvas canvas) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'draw'");
|
||||
}
|
||||
};
|
||||
return new Drawable();
|
||||
}
|
||||
|
||||
public void setKeyProgressIncrement(int keyProgressIncrement) {}
|
||||
|
||||
public int getKeyProgressIncrement() {return 0;}
|
||||
|
||||
public int getThumbOffset() {return 0;}
|
||||
}
|
||||
|
||||
@@ -189,6 +189,8 @@ public class ImageView extends View {
|
||||
|
||||
public void setColorFilter(int color) {}
|
||||
|
||||
public void setColorFilter(ColorFilter cf) {}
|
||||
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
protected native void native_setDrawable(long widget, long paintable);
|
||||
|
||||
@@ -545,6 +545,12 @@ public class PopupMenu {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setNumericShortcut'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean expandActionView() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'expandActionView'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -101,4 +101,6 @@ public class PopupWindow {
|
||||
public void setAnimationStyle(int animationStyle) {}
|
||||
|
||||
public void setTouchModal(boolean touchModal) {}
|
||||
|
||||
public void setElevation(float elevation) {}
|
||||
}
|
||||
|
||||
@@ -111,4 +111,8 @@ public class ProgressBar extends View {
|
||||
public void incrementProgressBy(int diff) {
|
||||
setProgress(progress + diff);
|
||||
}
|
||||
|
||||
public int getSecondaryProgress() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,4 +386,6 @@ public class TextView extends View {
|
||||
public int getTotalPaddingLeft() {return 0;}
|
||||
|
||||
public int getTotalPaddingTop() {return 0;}
|
||||
|
||||
public int getImeOptions() {return 0;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user