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: misc APIs for WhatsApp media chooser Activities
This commit is contained in:
@@ -163,7 +163,10 @@ public class ImageView extends View {
|
||||
public final void setColorFilter(int color, PorterDuff.Mode mode) {}
|
||||
|
||||
public void setImageTintList(ColorStateList tint) {
|
||||
colorFilter = new PorterDuffColorFilter(tint.getDefaultColor(), PorterDuff.Mode.SRC_IN);
|
||||
if (tint == null)
|
||||
colorFilter = null;
|
||||
else
|
||||
colorFilter = new PorterDuffColorFilter(tint.getDefaultColor(), PorterDuff.Mode.SRC_IN);
|
||||
setImageDrawable(drawable);
|
||||
}
|
||||
|
||||
@@ -191,6 +194,10 @@ public class ImageView extends View {
|
||||
|
||||
public void setColorFilter(ColorFilter cf) {}
|
||||
|
||||
public Matrix getImageMatrix() {
|
||||
return Matrix.IDENTITY_MATRIX;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
protected native void native_setDrawable(long widget, long paintable);
|
||||
|
||||
@@ -335,6 +335,12 @@ public class PopupMenu {
|
||||
throw new UnsupportedOperationException("Unimplemented method 'clearHeader'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubMenu setIcon(Drawable icon) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setIcon'");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class MenuItemImpl implements MenuItem {
|
||||
@@ -549,6 +555,12 @@ public class PopupMenu {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'expandActionView'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActionViewExpanded() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'isActionViewExpanded'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,11 +19,12 @@ public class ProgressBar extends View {
|
||||
super(context, attrs, defStyle);
|
||||
haveCustomMeasure = false;
|
||||
TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.ProgressBar, defStyle, 0);
|
||||
setIndeterminateDrawable(a.getDrawable(com.android.internal.R.styleable.ProgressBar_indeterminateDrawable));
|
||||
setProgressDrawable(a.getDrawable(com.android.internal.R.styleable.ProgressBar_progressDrawable));
|
||||
setIndeterminate(a.getBoolean(com.android.internal.R.styleable.ProgressBar_indeterminate, false));
|
||||
if (a.getBoolean(com.android.internal.R.styleable.ProgressBar_indeterminateOnly, false)) {
|
||||
setIndeterminate(true);
|
||||
}
|
||||
setIndeterminateDrawable(a.getDrawable(com.android.internal.R.styleable.ProgressBar_indeterminateDrawable));
|
||||
/* FIXME hack: NewPipe expects this to not be null, but for some reason it is */
|
||||
if(indeterminateDrawable == null)
|
||||
indeterminateDrawable = new Drawable() {
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
package android.widget;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
|
||||
public class RemoteViews {
|
||||
|
||||
public RemoteViews(String packageName, int layoutId) {}
|
||||
|
||||
public void setProgressBar(int viewId, int max, int progress, boolean indeterminate) {}
|
||||
|
||||
public void setTextViewText(int viewId, CharSequence text) {}
|
||||
|
||||
public void setImageViewResource(int viewId, int resId) {}
|
||||
|
||||
public void setContentDescription(int viewId, CharSequence text) {}
|
||||
|
||||
public void setOnClickPendingIntent(int viewId, PendingIntent pendingIntent) {}
|
||||
|
||||
public void setViewVisibility(int viewId, int visibility) {}
|
||||
}
|
||||
|
||||
@@ -403,4 +403,6 @@ public class TextView extends View {
|
||||
public void setShadowLayer(float radius, float dx, float dy, int color) {}
|
||||
|
||||
public void setBreakStrategy(int strategy) {}
|
||||
|
||||
public void clearComposingText() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user