mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Enable Payments Beta for more country codes.
This commit is contained in:
@@ -18,20 +18,20 @@ public final class GeographicalRestrictions {
|
||||
|
||||
private GeographicalRestrictions() {}
|
||||
|
||||
private static final Set<Integer> REGION_CODE_SET;
|
||||
private static final Set<Integer> BLACKLIST;
|
||||
|
||||
static {
|
||||
Set<Integer> set = new HashSet<>(BuildConfig.MOBILE_COIN_REGIONS.length);
|
||||
Set<Integer> set = new HashSet<>(BuildConfig.MOBILE_COIN_BLACKLIST.length);
|
||||
|
||||
for (int i = 0; i < BuildConfig.MOBILE_COIN_REGIONS.length; i++) {
|
||||
set.add(BuildConfig.MOBILE_COIN_REGIONS[i]);
|
||||
for (int i = 0; i < BuildConfig.MOBILE_COIN_BLACKLIST.length; i++) {
|
||||
set.add(BuildConfig.MOBILE_COIN_BLACKLIST[i]);
|
||||
}
|
||||
|
||||
REGION_CODE_SET = Collections.unmodifiableSet(set);
|
||||
BLACKLIST = Collections.unmodifiableSet(set);
|
||||
}
|
||||
|
||||
public static boolean regionAllowed(int regionCode) {
|
||||
return REGION_CODE_SET.contains(regionCode);
|
||||
return !BLACKLIST.contains(regionCode);
|
||||
}
|
||||
|
||||
public static boolean e164Allowed(@Nullable String e164) {
|
||||
|
||||
Reference in New Issue
Block a user