summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorroldenburg <roldenburg@google.com>2017-12-19 13:33:45 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-19 14:00:53 -0800
commite12f924c45d9e40dbdd23ad01b7bde855b82c4c8 (patch)
tree4538bd3030d9cfaf2fa602f693bc483e8d947e11 /java
parentab146531c0710ad46ac347d280b14c798f732a12 (diff)
Add flags for the Duo install, activate and invite buttons
Bug: 70034799 Test: GoogleCallLogAdapterTest PiperOrigin-RevId: 179596742 Change-Id: Ic5616af0680e36786ae5261813eae71cf096b084
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java20
1 files changed, 15 insertions, 5 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java b/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java
index 2baf117dc..15c4b5850 100644
--- a/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java
+++ b/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java
@@ -691,15 +691,25 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder
videoCallButtonView.setTag(IntentProvider.getDuoVideoIntentProvider(number));
videoCallButtonView.setVisibility(View.VISIBLE);
} else if (duo.isActivated(mContext) && !identifiedSpamCall) {
- inviteVideoButtonView.setTag(IntentProvider.getDuoInviteIntentProvider(number));
- inviteVideoButtonView.setVisibility(View.VISIBLE);
+ if (ConfigProviderBindings.get(mContext)
+ .getBoolean("enable_call_log_duo_invite_button", false)) {
+ inviteVideoButtonView.setTag(IntentProvider.getDuoInviteIntentProvider(number));
+ inviteVideoButtonView.setVisibility(View.VISIBLE);
+ }
} else if (duo.isEnabled(mContext) && !identifiedSpamCall) {
if (!duo.isInstalled(mContext)) {
- setUpVideoButtonView.setTag(IntentProvider.getInstallDuoIntentProvider());
+ if (ConfigProviderBindings.get(mContext)
+ .getBoolean("enable_call_log_install_duo_button", false)) {
+ setUpVideoButtonView.setTag(IntentProvider.getInstallDuoIntentProvider());
+ setUpVideoButtonView.setVisibility(View.VISIBLE);
+ }
} else {
- setUpVideoButtonView.setTag(IntentProvider.getSetUpDuoIntentProvider());
+ if (ConfigProviderBindings.get(mContext)
+ .getBoolean("enable_call_log_activate_duo_button", false)) {
+ setUpVideoButtonView.setTag(IntentProvider.getSetUpDuoIntentProvider());
+ setUpVideoButtonView.setVisibility(View.VISIBLE);
+ }
}
- setUpVideoButtonView.setVisibility(View.VISIBLE);
}
break;
default: