Merge "Set wallet lockscreen icon tint with text primary color." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
528aa5fec8
@@ -74,6 +74,7 @@ import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
import com.android.keyguard.KeyguardUpdateMonitor;
|
||||
import com.android.keyguard.KeyguardUpdateMonitorCallback;
|
||||
import com.android.settingslib.Utils;
|
||||
import com.android.systemui.ActivityIntentHelper;
|
||||
import com.android.systemui.Dependency;
|
||||
import com.android.systemui.R;
|
||||
@@ -459,6 +460,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
|
||||
if (tileIcon != null) {
|
||||
mWalletButton.setImageDrawable(tileIcon);
|
||||
}
|
||||
mWalletButton.getDrawable().setTint(
|
||||
Utils.getColorAttr(
|
||||
mContext,
|
||||
com.android.internal.R.attr.textColorPrimary).getDefaultColor());
|
||||
mWalletButton.setVisibility(VISIBLE);
|
||||
mWalletButton.setOnClickListener(this::onWalletClick);
|
||||
mIndicationArea.setPadding(mIndicationPadding, 0, mIndicationPadding, 0);
|
||||
|
||||
Reference in New Issue
Block a user