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
misc stubs for OctoDroid version 4.6.12
This commit is contained in:
@@ -533,6 +533,8 @@ public class Activity extends ContextThemeWrapper implements Window.Callback {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setTaskDescription(ActivityManager.TaskDescription description) {}
|
||||
|
||||
private native void nativeFinish(long native_window);
|
||||
public static native void nativeRecreateActivity(Activity activity);
|
||||
public static native void nativeStartActivity(Activity activity);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package android.app;
|
||||
|
||||
import android.content.pm.ConfigurationInfo;
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ActivityManager {
|
||||
@@ -9,6 +11,10 @@ public class ActivityManager {
|
||||
public int importance;
|
||||
}
|
||||
|
||||
public static class TaskDescription {
|
||||
public TaskDescription(String name, Bitmap icon, int color) {}
|
||||
}
|
||||
|
||||
public List<RunningAppProcessInfo> getRunningAppProcesses() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import android.content.res.ColorStateList;
|
||||
public class RippleDrawable extends LayerDrawable {
|
||||
|
||||
public RippleDrawable(ColorStateList colorStateList, Drawable drawable, Drawable drawable2) {
|
||||
super(new Drawable[] {drawable});
|
||||
super(drawable == null ? new Drawable[] {} : new Drawable[] {drawable});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -60,4 +60,8 @@ public abstract class CompoundButton extends Button implements Checkable {
|
||||
public Drawable getButtonDrawable() {
|
||||
return button_drawable;
|
||||
}
|
||||
|
||||
public ColorStateList getButtonTintList() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,5 +20,7 @@ public class EdgeEffect extends View {
|
||||
public boolean isFinished() {return true;}
|
||||
public void onRelease() {}
|
||||
public void onAbsorb(int velocity) {}
|
||||
public int getColor() {return 0;}
|
||||
public void setColor(int color) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user