summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/CallDetailActivity.java
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-12 12:50:55 -0700
committerAndrew Lee <anwlee@google.com>2015-10-12 13:39:12 -0700
commitf549abc92a680f31b4b210705e03428aa0d7c040 (patch)
tree76ffd93cfeb94d1b854ab925ae9a7fbb7d81ad22 /src/com/android/dialer/CallDetailActivity.java
parent7f3e03d5593e8f48c5462f4c385317e42b6ce796 (diff)
Show icons for call detail actions.
- Remove LinearLayouts and use drawableLeft instead. + Up block asset from 18dp to 24dp. Bug: 24109819 Change-Id: I941520f1b90e6f819c7f94269e395d26c56f5734
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r--src/com/android/dialer/CallDetailActivity.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java
index 73622bf9b..696168a8f 100644
--- a/src/com/android/dialer/CallDetailActivity.java
+++ b/src/com/android/dialer/CallDetailActivity.java
@@ -229,8 +229,7 @@ public class CallDetailActivity extends AppCompatActivity
private TextView mAccountLabel;
private View mCallButton;
- private View mBlockNumberActionItem;
- private TextView mBlockNumberActionItemText;
+ private TextView mBlockNumberActionItem;
private View mEditBeforeCallActionItem;
private View mReportActionItem;
@@ -284,9 +283,8 @@ public class CallDetailActivity extends AppCompatActivity
}
});
- mBlockNumberActionItem = findViewById(R.id.call_detail_action_block);
+ mBlockNumberActionItem = (TextView) findViewById(R.id.call_detail_action_block);
mBlockNumberActionItem.setOnClickListener(this);
- mBlockNumberActionItemText = (TextView) findViewById(R.id.call_detail_action_block_text);
mEditBeforeCallActionItem = findViewById(R.id.call_detail_action_edit_before_call);
mEditBeforeCallActionItem.setOnClickListener(this);
mReportActionItem = findViewById(R.id.call_detail_action_report);
@@ -443,9 +441,9 @@ public class CallDetailActivity extends AppCompatActivity
public void onCheckComplete(Integer id) {
mBlockedNumberId = id;
if (mBlockedNumberId == null) {
- mBlockNumberActionItemText.setText(R.string.action_block_number);
+ mBlockNumberActionItem.setText(R.string.action_block_number);
} else {
- mBlockNumberActionItemText.setText(R.string.action_unblock_number);
+ mBlockNumberActionItem.setText(R.string.action_unblock_number);
}
mBlockNumberActionItem.setVisibility(View.VISIBLE);