summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
diff options
context:
space:
mode:
authorBeverly Tai <beverlyt@google.com>2021-07-15 23:07:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-07-15 23:07:38 +0000
commitdea99bf55e69d9d4b6b359e4160dec99ec40067f (patch)
treea91f91d9432d4d05fd98e7b59202809b3edca6e3 /packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
parent04697f8263c5d76e52e8b6ffb27891c6e3c9cbeb (diff)
parent266e0b864fd2a4c6fdd65f3b361c7a9df5f9367b (diff)
Merge "Revert "Animate in a background for kg unlock icon"" into sc-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconViewController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/LockIconViewController.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
index cc0381fa3b6f..373d4df146d5 100644
--- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
+++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
@@ -43,6 +43,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
+import com.android.settingslib.Utils;
import com.android.systemui.Dumpable;
import com.android.systemui.R;
import com.android.systemui.biometrics.AuthController;
@@ -158,7 +159,6 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
mUnlockedLabel = context.getResources().getString(R.string.accessibility_unlock_button);
mLockedLabel = context.getResources().getString(R.string.accessibility_lock_icon);
dumpManager.registerDumpable("LockIconViewController", this);
-
}
@Override
@@ -238,7 +238,6 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
mView.setImageDrawable(mLockIcon);
mView.setVisibility(View.VISIBLE);
mView.setContentDescription(mLockedLabel);
- mView.hideBg();
} else if (mShowUnlockIcon) {
if (wasShowingFpIcon) {
mView.setImageDrawable(mFpToUnlockIcon);
@@ -249,11 +248,9 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
mLockToUnlockIcon.forceAnimationOnUI();
mLockToUnlockIcon.start();
}
- mView.animateBg();
mView.setVisibility(View.VISIBLE);
mView.setContentDescription(mUnlockedLabel);
} else {
- mView.hideBg();
mView.setVisibility(View.INVISIBLE);
mView.setContentDescription(null);
}
@@ -298,7 +295,11 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
}
private void updateColors() {
- mView.updateColor();
+ final int color = Utils.getColorAttrDefaultColor(mView.getContext(),
+ R.attr.wallpaperTextColorAccent);
+ mFpToUnlockIcon.setTint(color);
+ mLockToUnlockIcon.setTint(color);
+ mLockIcon.setTint(color);
}
private void updateConfiguration() {
@@ -458,7 +459,6 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
@Override
public void onConfigChanged(Configuration newConfig) {
updateConfiguration();
- updateColors();
}
};