avoid older android 9patch transparency bugs

// FREEBIE
fork-5.53.8
Jake McGinty 2015-11-13 17:46:35 -08:00 zatwierdzone przez Moxie Marlinspike
rodzic ff123943cb
commit dd0a952c83
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);