diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-04-13 18:14:54 -0700 |
---|---|---|
committer | Sarmad Hashmi <mhashmi@google.com> | 2016-04-13 18:45:35 -0700 |
commit | 167c6d1c3621f6be96952daaf0e8e7284bdae252 (patch) | |
tree | ffb0a1c46a8479ccdf42b811a9f118080344abf2 /res/layout/call_log_activity.xml | |
parent | e2c7405ced75bd5a48ae4306e5c851e1cdfa2c4b (diff) |
Fix block/unblock crash in call log history tab.
+When long-pressing and then pressing block/unblock in call history tab,
the dialer crashes
+This is because in CallLogListItemViewHolder, the block/unblock dialog
is shown, and after the user confirms, a snackbar is shown. The parent
of this snackbar is a View with the id floating_action_button_container.
The dialtacts_activity.xml has this but the call_log_activity.xml does
not, causing the snackbar to have a null parent view.
+Add floating_action_button_container to the call_log_activity.xml
Fixes: 27976785
Change-Id: I5aa79093a21d7006e989c7ca0095bc7b25a261a5
Diffstat (limited to 'res/layout/call_log_activity.xml')
-rw-r--r-- | res/layout/call_log_activity.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/layout/call_log_activity.xml b/res/layout/call_log_activity.xml index 0109df7d6..aa1a6f44d 100644 --- a/res/layout/call_log_activity.xml +++ b/res/layout/call_log_activity.xml @@ -33,4 +33,8 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> + <RelativeLayout + android:id="@+id/floating_action_button_container" + android:layout_width="0dp" + android:layout_height="0dp" /> </LinearLayout> |