Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 068cb8ba authored by Jason Monk's avatar Jason Monk
Browse files

Fix animating quick settings tiles

Bug: 25835488
Change-Id: Id9757dd2ae05c73a8b06d3bf9e8b3a2cb8296437
parent ce890c32
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -222,7 +222,6 @@ public class QSTileView extends QSTileBaseView {
        final ImageView icon = new ImageView(mContext);
        icon.setId(android.R.id.icon);
        icon.setScaleType(ScaleType.CENTER_INSIDE);
        icon.setImageTintList(ColorStateList.valueOf(getContext().getColor(android.R.color.white)));
        return icon;
    }

+4 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.graphics.drawable.Drawable;
import android.os.IBinder;
import android.os.UserHandle;
import android.service.quicksettings.IQSTileService;
@@ -132,7 +133,9 @@ public class CustomTile extends QSTile<QSTile.State> {
    @Override
    protected void handleUpdateState(State state, Object arg) {
        state.visible = true;
        state.icon = new DrawableIcon(mTile.getIcon().loadDrawable(mContext));
        Drawable drawable = mTile.getIcon().loadDrawable(mContext);
        drawable.setTint(mContext.getColor(android.R.color.white));
        state.icon = new DrawableIcon(drawable);
        state.label = mTile.getLabel();
        if (mTile.getContentDescription() != null) {
            state.contentDescription = mTile.getContentDescription();