Fix WiFi SMS setting.

Fixes #11898
This commit is contained in:
Brian Moyer 2022-01-14 21:55:12 -08:00 committed by Cody Henthorne
parent 5a51544cae
commit 79d73c9e74
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import android.app.job.JobInfo;
import androidx.annotation.NonNull;
import org.thoughtcrime.securesms.jobmanager.Constraint;
import org.thoughtcrime.securesms.util.TextSecurePreferences;
import org.thoughtcrime.securesms.keyvalue.SignalStore;
public class NetworkOrCellServiceConstraint implements Constraint {
@ -28,7 +28,7 @@ public class NetworkOrCellServiceConstraint implements Constraint {
@Override
public boolean isMet() {
if (TextSecurePreferences.isWifiSmsEnabled(application)) {
if (SignalStore.settings().isWifiCallingCompatibilityModeEnabled()) {
return networkConstraint.isMet() || hasCellService(application);
} else {
return hasCellService(application);

View file

@ -22,7 +22,7 @@ final class LogSectionKeyPreferences implements LogSection {
return new StringBuilder().append("Screen Lock : ").append(TextSecurePreferences.isScreenLockEnabled(context)).append("\n")
.append("Screen Lock Timeout : ").append(TextSecurePreferences.getScreenLockTimeout(context)).append("\n")
.append("Password Disabled : ").append(TextSecurePreferences.isPasswordDisabled(context)).append("\n")
.append("WiFi SMS : ").append(TextSecurePreferences.isWifiSmsEnabled(context)).append("\n")
.append("WiFi SMS : ").append(SignalStore.settings().isWifiCallingCompatibilityModeEnabled()).append("\n")
.append("Default SMS : ").append(Util.isDefaultSmsProvider(context)).append("\n")
.append("Prefer Contact Photos: ").append(SignalStore.settings().isPreferSystemContactPhotos()).append("\n")
.append("Call Bandwidth Mode : ").append(SignalStore.settings().getCallBandwidthMode()).append("\n")