diff options
author | Yorke Lee <yorkelee@google.com> | 2015-11-09 18:38:51 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-11-09 18:38:51 -0800 |
commit | 516be4dc3cb7088aa4344938347e18770f6aff67 (patch) | |
tree | 7a917e941d1f64effc46f46dc64b6801be03aa70 /src | |
parent | 4aabaacd849235864c16f8e6bc72e0d0412a02e6 (diff) |
Fix RTL layout for "Block number" action in Call Details
Use the RTL-adjusted method when assigning the compound
drawable to the TextView.
Bug: 25513994
Change-Id: I85103fa92fce6798ba049c6393ca692700099efa
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index f63fcf3b0..2e2bea8ce 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -445,11 +445,11 @@ public class CallDetailActivity extends AppCompatActivity private void updateBlockActionItem() { if (mBlockedNumberId == null) { mBlockNumberActionItem.setText(R.string.action_block_number); - mBlockNumberActionItem.setCompoundDrawablesWithIntrinsicBounds( + mBlockNumberActionItem.setCompoundDrawablesRelativeWithIntrinsicBounds( R.drawable.ic_call_detail_block, 0, 0, 0); } else { mBlockNumberActionItem.setText(R.string.action_unblock_number); - mBlockNumberActionItem.setCompoundDrawablesWithIntrinsicBounds( + mBlockNumberActionItem.setCompoundDrawablesRelativeWithIntrinsicBounds( R.drawable.ic_call_detail_unblock, 0, 0, 0); } |