Sets a few button to invisible by default.
- When user rejects an incoming call, the buttons wouldn't get
initialized to be visible or invisible because the call state never
gets to be processed.
- A few non-essential buttons (add call/swap call/merge call) are
therefore defaulted to be inivisible.
Bug: 11028671
Change-Id: Ia2b800a80b83bd8212bef67834c9f5214e3090b5
diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml
index 420d2aa..1e7049d 100644
--- a/InCallUI/res/layout/call_button_fragment.xml
+++ b/InCallUI/res/layout/call_button_fragment.xml
@@ -136,6 +136,7 @@
style="@style/InCallButton"
android:src="@drawable/ic_incall_switch_holo_dark"
android:contentDescription="@string/onscreenSwapCallsText"
+ android:visibility="gone"
/>
<!-- Separator between 4th and 5th button (if 5th exists) -->
@@ -150,6 +151,7 @@
style="@style/InCallButton"
android:src="@drawable/ic_add_contact_holo_dark"
android:contentDescription="@string/onscreenAddCallText"
+ android:visibility="gone"
/>
<!-- "Merge calls" -->
<!-- This button is used only on GSM devices, where we know
@@ -159,6 +161,7 @@
style="@style/InCallButton"
android:src="@drawable/ic_merge_holo_dark"
android:contentDescription="@string/onscreenMergeCallsText"
+ android:visibility="gone"
/>
<!-- Separator between 4th (or 5th) button and right padding -->