From a6732f7dd28e56fcc075f6d405ff2dada0a83cea Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 19 Oct 2015 22:44:06 -0700 Subject: Show unblock icon for blocked numbers. Bug: 25095683 Change-Id: I244ec8312ad24081fd36967e063ddccd53b0253c --- src/com/android/dialer/CallDetailActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index ef219800f..284a5785e 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -455,8 +455,12 @@ public class CallDetailActivity extends AppCompatActivity private void updateBlockActionItem() { if (mBlockedNumberId == null) { mBlockNumberActionItem.setText(R.string.action_block_number); + mBlockNumberActionItem.setCompoundDrawablesWithIntrinsicBounds( + R.drawable.ic_call_detail_block, 0, 0, 0); } else { mBlockNumberActionItem.setText(R.string.action_unblock_number); + mBlockNumberActionItem.setCompoundDrawablesWithIntrinsicBounds( + R.drawable.ic_call_detail_unblock, 0, 0, 0); } mBlockNumberActionItem.setVisibility(View.VISIBLE); -- cgit v1.2.3