mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
committed by
Cody Henthorne
parent
5a51544cae
commit
79d73c9e74
@@ -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);
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user