Add new handling to encourage the user to save their wallet recovery phrase.

This only effects those who have opted in to payments and have a non-zero balance.
This commit is contained in:
Varsha
2022-09-21 11:15:49 -07:00
committed by Cody Henthorne
parent c6bfdeb4b0
commit e676f324f1
16 changed files with 308 additions and 76 deletions

View File

@@ -1,7 +1,6 @@
package org.thoughtcrime.securesms.preferences;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import androidx.annotation.Nullable;
@@ -79,7 +78,7 @@ public class AdvancedPinPreferenceFragment extends ListSummaryPreferenceFragment
.setCancelable(true)
.setPositiveButton(android.R.string.ok, (d, which) -> d.dismiss())
.show();
} else if (!enabled && SignalStore.paymentsValues().mobileCoinPaymentsEnabled() && !SignalStore.paymentsValues().userConfirmedMnemonic()) {
} else if (!enabled && SignalStore.paymentsValues().mobileCoinPaymentsEnabled() && !SignalStore.paymentsValues().getUserConfirmedMnemonic()) {
new AlertDialog.Builder(requireContext())
.setTitle(R.string.ApplicationPreferencesActivity_record_payments_recovery_phrase)
.setMessage(R.string.ApplicationPreferencesActivity_before_you_can_disable_your_pin)