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

Commit e7afa7b0 authored by uabdullah's avatar uabdullah Committed by android-build-merger
Browse files

Merge "Update what happens when donation is rejected & use correct donation...

Merge "Update what happens when donation is rejected & use correct donation availability check" am: 050814cd
am: 91efee23

Change-Id: I617a06aaa83a29fd3814316f5660395697bacfdd
parents b9e40e19 91efee23
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -356,6 +356,9 @@ public class PhoneCallDetailsHelper
        new DialogInterface.OnClickListener() {
          @Override
          public void onClick(final DialogInterface dialog, final int button) {
            VoicemailComponent.get(context)
                .getVoicemailClient()
                .setVoicemailDonationEnabled(context, details.accountHandle, false);
            dialog.cancel();
            recordPromoShown(context);
            ratingView.setVisibility(View.GONE);
+3 −1
Original line number Diff line number Diff line
@@ -116,7 +116,9 @@ public class TranscriptionTaskAsync extends TranscriptionTask {
    // Generate the transcript id locally if configured to do so, or if voicemail donation is
    // available (because rating donating voicemails requires locally generated voicemail ids).
    if (configProvider.useClientGeneratedVoicemailIds()
        || configProvider.isVoicemailDonationAvailable()) {
        || VoicemailComponent.get(context)
            .getVoicemailClient()
            .isVoicemailDonationAvailable(context, phoneAccountHandle)) {
      // The server currently can't handle repeated transcription id's so if we add the Uri to the
      // fingerprint (which contains the voicemail id) which is different each time a voicemail is
      // downloaded.  If this becomes a problem then it should be possible to change the server