avoid older android 9patch transparency bugs

// FREEBIE
pull/1/head
Jake McGinty 10 years ago committed by Moxie Marlinspike
parent ff123943cb
commit dd0a952c83

@ -53,7 +53,7 @@ public class TransferControlView extends FrameLayout {
inflate(context, R.layout.transfer_controls_view, this); inflate(context, R.layout.transfer_controls_view, this);
final Drawable background = ContextCompat.getDrawable(context, R.drawable.transfer_controls_background); final Drawable background = ContextCompat.getDrawable(context, R.drawable.transfer_controls_background);
if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH) { if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
background.setColorFilter(0x66ffffff, Mode.MULTIPLY); background.setColorFilter(0x66ffffff, Mode.MULTIPLY);
} }
setLongClickable(false); setLongClickable(false);

Loading…
Cancel
Save