summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-01-16 16:29:00 -0800
committerNancy Chen <nancychen@google.com>2015-01-16 16:29:00 -0800
commit978f6bff7580564911d66176ab669ead447c1913 (patch)
tree275ae401c4d43634f3bd05dd7e11137a1063d12b
parentf06f97fa1c13576ce2b42f8f0e9ad088f2991607 (diff)
downloadpackages_apps_InCallUI-978f6bff7580564911d66176ab669ead447c1913.tar.gz
packages_apps_InCallUI-978f6bff7580564911d66176ab669ead447c1913.tar.bz2
packages_apps_InCallUI-978f6bff7580564911d66176ab669ead447c1913.zip
Remove padding from call buttons to fix undesired cropping.
Padding was added to the sides of the call button row in order to prevent false touches. However, this additional padding causes cropping of the background on the two buttons on the far left and far right when all 5 buttons are present on low resolution devices. Since on high resolution devices there is more than enough extra space on the left and right, this padding is being removed to eliminate cropping. Bug: 18122087 Change-Id: Ie948d9cbe4ef7025702ae1f4666354ab1be76bbc
-rw-r--r--res/layout/call_button_fragment.xml2
-rw-r--r--res/values/dimens.xml7
2 files changed, 0 insertions, 9 deletions
diff --git a/res/layout/call_button_fragment.xml b/res/layout/call_button_fragment.xml
index 24101fea..e8feca68 100644
--- a/res/layout/call_button_fragment.xml
+++ b/res/layout/call_button_fragment.xml
@@ -45,8 +45,6 @@
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingStart="@dimen/button_cluster_horizontal_padding"
- android:paddingEnd="@dimen/button_cluster_horizontal_padding"
android:gravity="bottom|center_horizontal"
android:baselineAligned="false">
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index f390f38e..43307e8d 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -69,13 +69,6 @@
<dimen name="floating_action_bar_vertical_offset">-24dp</dimen>
- <!-- Padding at the left and right edges of the incall_touch_ui button
- cluster. This padding is necessary because we can't allow the
- buttons to be very close to the edges of the screen, due to the
- risk of false touches (from your finger wrapping around while
- holding the phone, *before* moving it up to your face and having
- the prox sensor kick in.) -->
- <dimen name="button_cluster_horizontal_padding">20dp</dimen>
<dimen name="call_button_margin_vertical">8dp</dimen>
<dimen name="call_button_margin_horizontal">6dp</dimen>