From 859f2c84af4f20ac6083de30353b3ace41af87b0 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 17 Apr 2019 18:30:00 -0700 Subject: [PATCH] Indicate that a TrustAgent kept the phone unlocked Fixes: 130326679 Test: manual with SmartLock Change-Id: Ic5bb8608313498f2608890eac5c226db06c20ac7 --- packages/SystemUI/res/values/strings.xml | 5 +---- .../systemui/statusbar/KeyguardIndicationController.java | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 444cabfcc50e0..ab096527d2130 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -1290,10 +1290,7 @@ activity. - Unlocked for %1$s - - - %1$s is running + Kept unlocked by TrustAgent Device will stay locked until you manually unlock diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index 3441591e03ff2..25436a9ad45b0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -236,8 +236,8 @@ public class KeyguardIndicationController implements StateListener { * * @return {@code null} or an empty string if a trust indication text should not be shown. */ - protected String getTrustGrantedIndication() { - return null; + private String getTrustGrantedIndication() { + return mContext.getString(R.string.keyguard_indication_trust_unlocked); } /** @@ -245,7 +245,7 @@ public class KeyguardIndicationController implements StateListener { * * @return {@code null} or an empty string if a trust managed text should not be shown. */ - protected String getTrustManagedIndication() { + private String getTrustManagedIndication() { return null; }