mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Add a feature flag to disable SMS megaphone.
As part of this work, we also make sure we fetch feature flags during registration.
This commit is contained in:
committed by
Cody Henthorne
parent
2d93d74b9f
commit
817f1ee938
@@ -5,6 +5,7 @@ import android.content.Context;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.thoughtcrime.securesms.phonenumbers.PhoneNumberFormatter;
|
||||
import org.thoughtcrime.securesms.util.LocaleFeatureFlags;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
import java.util.Collections;
|
||||
@@ -69,7 +70,7 @@ public final class OnboardingValues extends SignalStoreValues {
|
||||
}
|
||||
|
||||
public boolean shouldShowSms(@NonNull Context context) {
|
||||
return getBoolean(SHOW_SMS, false) && !Util.isDefaultSmsProvider(context) && PhoneNumberFormatter.getLocalCountryCode() != 91;
|
||||
return getBoolean(SHOW_SMS, false) && !Util.isDefaultSmsProvider(context) && LocaleFeatureFlags.shouldSuggestSms();
|
||||
}
|
||||
|
||||
public void setShowAppearance(boolean value) {
|
||||
|
||||
Reference in New Issue
Block a user