Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e12f924c authored by roldenburg's avatar roldenburg Committed by Copybara-Service
Browse files

Add flags for the Duo install, activate and invite buttons

Bug: 70034799
Test: GoogleCallLogAdapterTest
PiperOrigin-RevId: 179596742
Change-Id: Ic5616af0680e36786ae5261813eae71cf096b084
parent ab146531
Loading
Loading
Loading
Loading
+15 −5
Original line number Diff line number Diff line
@@ -691,16 +691,26 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder
          videoCallButtonView.setTag(IntentProvider.getDuoVideoIntentProvider(number));
          videoCallButtonView.setVisibility(View.VISIBLE);
        } else if (duo.isActivated(mContext) && !identifiedSpamCall) {
          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)) {
            if (ConfigProviderBindings.get(mContext)
                .getBoolean("enable_call_log_install_duo_button", false)) {
              setUpVideoButtonView.setTag(IntentProvider.getInstallDuoIntentProvider());
              setUpVideoButtonView.setVisibility(View.VISIBLE);
            }
          } else {
            if (ConfigProviderBindings.get(mContext)
                .getBoolean("enable_call_log_activate_duo_button", false)) {
              setUpVideoButtonView.setTag(IntentProvider.getSetUpDuoIntentProvider());
          }
              setUpVideoButtonView.setVisibility(View.VISIBLE);
            }
          }
        }
        break;
      default:
        callButtonView.setVisibility(View.GONE);