diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-19 22:44:06 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-10-19 22:44:06 -0700 |
commit | a6732f7dd28e56fcc075f6d405ff2dada0a83cea (patch) | |
tree | 5579cdd2e7be87b9890ffc837036cb99752457ab /src | |
parent | d0a5d1421e52caad8073c3e08fbb645c069344df (diff) |
Show unblock icon for blocked numbers.
Bug: 25095683
Change-Id: I244ec8312ad24081fd36967e063ddccd53b0253c
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
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); |