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: stubs and fixes for Open Sudoku
This commit is contained in:
15
src/api-impl/android/graphics/drawable/DrawableWrapper.java
Normal file
15
src/api-impl/android/graphics/drawable/DrawableWrapper.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package android.graphics.drawable;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
public class DrawableWrapper extends Drawable {
|
||||
private Drawable drawable;
|
||||
|
||||
public DrawableWrapper(Drawable drawable) {
|
||||
this.drawable = drawable;
|
||||
}
|
||||
|
||||
public Drawable getDrawable() {
|
||||
return drawable;
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,17 @@
|
||||
package android.graphics.drawable;
|
||||
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.DrawableWrapper;
|
||||
|
||||
public class InsetDrawable extends Drawable {
|
||||
|
||||
private Drawable drawable;
|
||||
public class InsetDrawable extends DrawableWrapper {
|
||||
|
||||
public InsetDrawable(Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom) {
|
||||
super();
|
||||
this.drawable = drawable;
|
||||
super(drawable);
|
||||
}
|
||||
|
||||
public InsetDrawable(Drawable drawable, int inset) {
|
||||
super();
|
||||
this.drawable = drawable;
|
||||
super(drawable);
|
||||
}
|
||||
|
||||
public boolean getPadding(Rect padding) { return false; }
|
||||
|
||||
public Drawable getDrawable() {
|
||||
return drawable;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user