mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Remove more SMS vestiges.
This commit is contained in:
@@ -235,10 +235,6 @@ public final class MiscellaneousValues extends SignalStoreValues {
|
||||
putBoolean(PNI_INITIALIZED_DEVICES, value);
|
||||
}
|
||||
|
||||
public @NonNull SmsExportPhase getSmsExportPhase() {
|
||||
return SmsExportPhase.getCurrentPhase();
|
||||
}
|
||||
|
||||
public void setHasLinkedDevices(boolean value) {
|
||||
putBoolean(HAS_LINKED_DEVICES, value);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@ public final class SettingsValues extends SignalStoreValues {
|
||||
public static final String CALL_RINGTONE = "settings.call.ringtone";
|
||||
public static final String CALL_VIBRATE_ENABLED = "settings.call.vibrate.enabled";
|
||||
public static final String NOTIFY_WHEN_CONTACT_JOINS_SIGNAL = "settings.notify.when.contact.joins.signal";
|
||||
private static final String DEFAULT_SMS = "settings.default_sms";
|
||||
private static final String UNIVERSAL_EXPIRE_TIMER = "settings.universal.expire.timer";
|
||||
private static final String SENT_MEDIA_QUALITY = "settings.sentMediaQuality";
|
||||
private static final String CENSORSHIP_CIRCUMVENTION_ENABLED = "settings.censorshipCircumventionEnabled";
|
||||
@@ -411,26 +410,6 @@ public final class SettingsValues extends SignalStoreValues {
|
||||
putBoolean(NOTIFY_WHEN_CONTACT_JOINS_SIGNAL, notifyWhenContactJoinsSignal);
|
||||
}
|
||||
|
||||
/**
|
||||
* We need to keep track of when the default status changes so we can sync to storage service.
|
||||
* So call this when you think it might have changed, but *don't* rely on it for knowing if we
|
||||
* *are* the default SMS. For that, continue to use
|
||||
* {@link org.thoughtcrime.securesms.util.Util#isDefaultSmsProvider(Context)}.
|
||||
*/
|
||||
public void setDefaultSms(boolean value) {
|
||||
boolean lastKnown = getBoolean(DEFAULT_SMS, false);
|
||||
|
||||
if (value != lastKnown && SignalStore.registrationValues().isRegistrationComplete()) {
|
||||
Log.i(TAG, "Default SMS state changed! Scheduling a storage sync.");
|
||||
putBoolean(DEFAULT_SMS, value);
|
||||
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
SignalDatabase.recipients().markNeedsSync(Recipient.self().getId());
|
||||
StorageSyncHelper.scheduleSyncForDataChange();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void setUniversalExpireTimer(int seconds) {
|
||||
putInteger(UNIVERSAL_EXPIRE_TIMER, seconds);
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.thoughtcrime.securesms.keyvalue
|
||||
|
||||
enum class SmsExportPhase(val duration: Long) {
|
||||
PHASE_3(0);
|
||||
|
||||
fun allowSmsFeatures(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
fun isSmsSupported(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
fun isBlockingUi(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun getCurrentPhase(): SmsExportPhase {
|
||||
return PHASE_3
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user