Disable voicemail archive by default.
+Archive-specific actions are not drawn unless the runtime flag is
enabled
+Disable archive button and menu item
BUG=27375884
Change-Id: Ide7d0a162468279f614e09e01de99d782854a3e1
diff --git a/res/layout/voicemail_playback_layout.xml b/res/layout/voicemail_playback_layout.xml
index 4d5f74f..984a52b 100644
--- a/res/layout/voicemail_playback_layout.xml
+++ b/res/layout/voicemail_playback_layout.xml
@@ -102,16 +102,18 @@
android:tint="@color/voicemail_icon_tint"
android:contentDescription="@string/call_log_trash_voicemail" />
- <Space
+ <Space android:id="@+id/space_before_archive_voicemail"
android:layout_width="0dp"
android:layout_height="match_parent"
- android:layout_weight="1"/>
+ android:layout_weight="1"
+ android:visibility="gone" />
<ImageButton android:id="@+id/archive_voicemail"
style="@style/VoicemailPlaybackLayoutButtonStyle"
android:src="@drawable/ic_archive_white_24dp"
android:tint="@color/voicemail_icon_tint"
- android:contentDescription="@string/call_log_archive_voicemail" />
+ android:contentDescription="@string/call_log_archive_voicemail"
+ android:visibility="gone" />
<Space
android:layout_width="0dp"
diff --git a/res/menu/dialtacts_options.xml b/res/menu/dialtacts_options.xml
index 8e31026..0f068f5 100644
--- a/res/menu/dialtacts_options.xml
+++ b/res/menu/dialtacts_options.xml
@@ -21,7 +21,8 @@
android:title="@string/action_menu_call_history_description" />
<item
android:id="@+id/menu_archive"
- android:title="@string/voicemail_archive_activity_title" />
+ android:title="@string/voicemail_archive_activity_title"
+ android:visible="false" />
<item
android:id="@+id/menu_import_export"
android:title="@string/menu_import_export" />