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
Drawable: stub 'ripple' as transparent ColorDrawable, fix view.setBackgroundColor for buttons
This commit is contained in:
@@ -43,7 +43,7 @@ public class Drawable {
|
||||
public ConstantState getConstantState() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public abstract class ConstantState {
|
||||
|
||||
public abstract Drawable newDrawable(Resources res);
|
||||
@@ -131,6 +131,9 @@ public class Drawable {
|
||||
return drawable;
|
||||
} else if ("transition".equals(parser.getName())) {
|
||||
return new Drawable();
|
||||
} else if ("ripple".equals(parser.getName())) {
|
||||
// FIXME: the non-pressed state of RippleDrawable should be equivalent to this
|
||||
return new ColorDrawable(0);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user