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
add more stubs to make exoplayer not crash
This commit is contained in:
@@ -25,4 +25,6 @@ public abstract class AbsSeekBar extends ProgressBar {
|
||||
};
|
||||
}
|
||||
|
||||
public void setKeyProgressIncrement(int keyProgressIncrement) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -134,4 +134,6 @@ public class ImageView extends View {
|
||||
public final void setColorFilter(int color, PorterDuff.Mode mode) {}
|
||||
|
||||
public void setImageTintList(ColorStateList tint) {}
|
||||
|
||||
public void setImageAlpha(int alpha) {}
|
||||
}
|
||||
|
||||
@@ -36,4 +36,18 @@ public class ProgressBar extends View {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void setMax(int max) {}
|
||||
|
||||
public int getMax() {
|
||||
return 100;
|
||||
}
|
||||
|
||||
public void setProgress(int progress) {}
|
||||
|
||||
public void setSecondaryProgress(int secondaryProgress) {}
|
||||
|
||||
public int getProgress() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
4
src/api-impl/android/widget/RemoteViews.java
Normal file
4
src/api-impl/android/widget/RemoteViews.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package android.widget;
|
||||
|
||||
public class RemoteViews {
|
||||
}
|
||||
@@ -175,6 +175,14 @@ public class TextView extends View {
|
||||
|
||||
public void setTextIsSelectable(boolean selectable) {}
|
||||
|
||||
public void setText(CharSequence text, BufferType type) {
|
||||
setText(text);
|
||||
}
|
||||
|
||||
public MovementMethod getMovementMethod() {
|
||||
return new MovementMethod();
|
||||
}
|
||||
|
||||
public static interface OnEditorActionListener {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user