mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
resolved conflicts for merge of 9fc953b9 to ub-launcher3-master
Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
This commit is contained in:
@@ -92,7 +92,7 @@ public abstract class ButtonDropTarget extends TextView
|
||||
// drawableLeft and drawableStart.
|
||||
mDrawable = getResources().getDrawable(resId);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
||||
if (Utilities.ATLEAST_JB_MR1) {
|
||||
setCompoundDrawablesRelativeWithIntrinsicBounds(mDrawable, null, null, null);
|
||||
} else {
|
||||
setCompoundDrawablesWithIntrinsicBounds(mDrawable, null, null, null);
|
||||
@@ -113,7 +113,7 @@ public abstract class ButtonDropTarget extends TextView
|
||||
@Override
|
||||
public final void onDragEnter(DragObject d) {
|
||||
d.dragView.setColor(mHoverColor);
|
||||
if (Utilities.isLmpOrAbove()) {
|
||||
if (Utilities.ATLEAST_LOLLIPOP) {
|
||||
animateTextColor(mHoverColor);
|
||||
} else {
|
||||
if (mCurrentFilter == null) {
|
||||
@@ -130,8 +130,8 @@ public abstract class ButtonDropTarget extends TextView
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
protected void resetHoverColor() {
|
||||
if (Utilities.isLmpOrAbove()) {
|
||||
protected void resetHoverColor() {
|
||||
if (Utilities.ATLEAST_LOLLIPOP) {
|
||||
animateTextColor(mOriginalTextColor.getDefaultColor());
|
||||
} else {
|
||||
mDrawable.setColorFilter(null);
|
||||
|
||||
Reference in New Issue
Block a user