summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-04-07 00:22:47 -0400
committerDaniel Sandler <dsandler@android.com>2010-04-07 00:22:47 -0400
commit789a25eb9bd9c2953e9d7cd1a5cbfd1f92b8f3a0 (patch)
tree9a7638c7203d8da37390b69097a9877781f6eb05
parent6e52b5d76850ee60bbef2f3d8a2e47bd589e28e8 (diff)
downloadframeworks_base-789a25eb9bd9c2953e9d7cd1a5cbfd1f92b8f3a0.zip
frameworks_base-789a25eb9bd9c2953e9d7cd1a5cbfd1f92b8f3a0.tar.gz
frameworks_base-789a25eb9bd9c2953e9d7cd1a5cbfd1f92b8f3a0.tar.bz2
Add emergency call button to PUK'd lockscreen.
The user unlocks a PUK-locked SIM via the e-call dialer, so we absolutely need the button there. This is the layout portion; it requires change I6872c3ad135bc34348adafa76e08a3878f1b506f from frameworks/policies/base. Bug: 2568732 Change-Id: I8aa0fc2223428ba15a57269ac5a624e74e91a5f3
-rw-r--r--core/res/res/layout/keyguard_screen_tab_unlock.xml14
-rw-r--r--core/res/res/layout/keyguard_screen_tab_unlock_land.xml12
2 files changed, 26 insertions, 0 deletions
diff --git a/core/res/res/layout/keyguard_screen_tab_unlock.xml b/core/res/res/layout/keyguard_screen_tab_unlock.xml
index a4b2357..945d283 100644
--- a/core/res/res/layout/keyguard_screen_tab_unlock.xml
+++ b/core/res/res/layout/keyguard_screen_tab_unlock.xml
@@ -152,5 +152,19 @@
android:layout_marginBottom="80dip"
/>
+ <!-- emergency call button shown when sim is PUKd and tab_selector is
+ hidden -->
+ <Button
+ android:id="@+id/emergencyCallButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:drawableLeft="@drawable/ic_emergency"
+ android:layout_centerInParent="true"
+ android:layout_alignParentBottom="true"
+ android:layout_marginBottom="80dip"
+ style="@style/Widget.Button.Transparent"
+ android:drawablePadding="8dip"
+ />
+
</RelativeLayout>
diff --git a/core/res/res/layout/keyguard_screen_tab_unlock_land.xml b/core/res/res/layout/keyguard_screen_tab_unlock_land.xml
index e1c9772..6b76004 100644
--- a/core/res/res/layout/keyguard_screen_tab_unlock_land.xml
+++ b/core/res/res/layout/keyguard_screen_tab_unlock_land.xml
@@ -153,4 +153,16 @@
android:layout_marginRight="80dip"
/>
+ <!-- emergency call button shown when sim is PUKd and tab_selector is
+ hidden -->
+ <Button
+ android:id="@+id/emergencyCallButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:drawableLeft="@drawable/ic_emergency"
+ style="@style/Widget.Button.Transparent"
+ android:drawablePadding="8dip"
+ android:layout_marginRight="80dip"
+ />
+
</LinearLayout>