From 12f2de4f4fcdb5a20ddca80c340076bcc09cc8ea Mon Sep 17 00:00:00 2001 From: qingxi Date: Wed, 24 May 2017 15:33:13 -0700 Subject: [PATCH] Only show the "Disable eSIM" when eSIM profile is enabled Before this CL, we always show "Disable eSIM" button in SIM lock screen if the device has eSIM chip. This may make the user who has never used eSIM or currently is not activated the eSIM Profile confused. This CL makes the "Disable eSIM" button only be shown iff the device has eSIM chip and the current activated Profile is eSIM profile. Bug: 37518023 Test: E2E Change-Id: Id5a1325f49733528a370ec7145fe49731243bcf7 --- .../SystemUI/res-keyguard/layout/keyguard_sim_pin_view.xml | 1 + .../SystemUI/res-keyguard/layout/keyguard_sim_puk_view.xml | 7 ++++--- .../SystemUI/src/com/android/keyguard/KeyguardEsimArea.java | 12 ++++++++---- .../src/com/android/keyguard/KeyguardSimPinView.java | 8 +++++--- .../src/com/android/keyguard/KeyguardSimPukView.java | 10 +++++++--- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_sim_pin_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_sim_pin_view.xml index 7d47881ddd0d..f0dec762abc6 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_sim_pin_view.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_sim_pin_view.xml @@ -47,6 +47,7 @@ android:layoutDirection="ltr" > diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_sim_puk_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_sim_puk_view.xml index aaa53ee66357..119b3ee11335 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_sim_puk_view.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_sim_puk_view.xml @@ -48,9 +48,10 @@ android:layoutDirection="ltr" > + android:id="@+id/keyguard_esim_area" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/eca_overlap" />