Merge "Avoid duplicate text on keyguard indication" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-24 02:33:21 +00:00
committed by Android (Google) Code Review

View File

@@ -340,7 +340,7 @@ public class KeyguardIndicationController implements StateListener,
mTextView.switchIndication(com.android.internal.R.string.lockscreen_storage_locked); mTextView.switchIndication(com.android.internal.R.string.lockscreen_storage_locked);
mTextView.setTextColor(mInitialTextColorState); mTextView.setTextColor(mInitialTextColorState);
} else if (!TextUtils.isEmpty(mTransientIndication)) { } else if (!TextUtils.isEmpty(mTransientIndication)) {
if (powerIndication != null) { if (powerIndication != null && !mTransientIndication.equals(powerIndication)) {
String indication = mContext.getResources().getString( String indication = mContext.getResources().getString(
R.string.keyguard_indication_trust_unlocked_plugged_in, R.string.keyguard_indication_trust_unlocked_plugged_in,
mTransientIndication, powerIndication); mTransientIndication, powerIndication);