mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Improve payment withdrawals.
This commit is contained in:
committed by
Alex Hart
parent
eae6a971e6
commit
427e73f7fd
@@ -3,7 +3,6 @@ package org.thoughtcrime.securesms.util;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.annotation.WorkerThread;
|
||||
|
||||
@@ -18,7 +17,6 @@ import org.thoughtcrime.securesms.groups.SelectionLimits;
|
||||
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob;
|
||||
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob;
|
||||
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
||||
import org.thoughtcrime.securesms.keyvalue.StoryValues;
|
||||
import org.thoughtcrime.securesms.messageprocessingalarm.MessageProcessReceiver;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -95,6 +93,7 @@ public final class FeatureFlags {
|
||||
private static final String SOFTWARE_AEC_BLOCKLIST_MODELS = "android.calling.softwareAecBlockList";
|
||||
private static final String USE_HARDWARE_AEC_IF_OLD = "android.calling.useHardwareAecIfOlderThanApi29";
|
||||
private static final String USE_AEC3 = "android.calling.useAec3";
|
||||
private static final String PAYMENTS_COUNTRY_BLOCKLIST = "android.payments.blocklist";
|
||||
|
||||
/**
|
||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||
@@ -141,7 +140,8 @@ public final class FeatureFlags {
|
||||
HARDWARE_AEC_BLOCKLIST_MODELS,
|
||||
SOFTWARE_AEC_BLOCKLIST_MODELS,
|
||||
USE_HARDWARE_AEC_IF_OLD,
|
||||
USE_AEC3
|
||||
USE_AEC3,
|
||||
PAYMENTS_COUNTRY_BLOCKLIST
|
||||
);
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -199,7 +199,8 @@ public final class FeatureFlags {
|
||||
HARDWARE_AEC_BLOCKLIST_MODELS,
|
||||
SOFTWARE_AEC_BLOCKLIST_MODELS,
|
||||
USE_HARDWARE_AEC_IF_OLD,
|
||||
USE_AEC3
|
||||
USE_AEC3,
|
||||
PAYMENTS_COUNTRY_BLOCKLIST
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -418,6 +419,11 @@ public final class FeatureFlags {
|
||||
return getBoolean(GROUP_CALL_RINGING, false);
|
||||
}
|
||||
|
||||
/** A comma-separated list of country codes where payments should be disabled. */
|
||||
public static String paymentsCountryBlocklist() {
|
||||
return getString(PAYMENTS_COUNTRY_BLOCKLIST, "98,963,53,850,7");
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not to show donor badges in the UI.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user