Fix problems of SIM lock screen of eSIM

This CL fixes following issues:
1. The text on the button currently is black (should be white).
2. Clicking on it turns the screen off but doesn't disable the enabled
profile.

Bug: 64227431
Test: E2E
Change-Id: I87eaeb348c32af610a375912ae0aa5c7aa25dba7
This commit is contained in:
qingxi
2017-08-03 16:24:15 -07:00
parent c71be69f49
commit ccae10e692
3 changed files with 3 additions and 2 deletions

View File

@@ -108,6 +108,7 @@
<uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
<!-- Keyguard -->
<uses-permission android:name="com.android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS" />
<uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />

View File

@@ -25,8 +25,7 @@
android:id="@+id/keyguard_disable_esim"
android:visibility="gone"
android:text="@string/disable_carrier_button_text"
style="?android:attr/buttonBarButtonStyle"
style="@style/Keyguard.TextView"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/kg_status_line_font_size"
android:textColor="?android:attr/textColorSecondary"
android:textAllCaps="@bool/kg_use_all_caps" />

View File

@@ -72,6 +72,7 @@ class KeyguardEsimArea extends Button implements View.OnClickListener {
public KeyguardEsimArea(Context context, AttributeSet attrs, int defStyleAttr,
int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
mEuiccManager = (EuiccManager) context.getSystemService(Context.EUICC_SERVICE);
setOnClickListener(this);
}