diff --git a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionKeyPreferences.java b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionKeyPreferences.java index 4a3412f0d..ba3ec97e2 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionKeyPreferences.java +++ b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionKeyPreferences.java @@ -8,7 +8,6 @@ import org.thoughtcrime.securesms.keyvalue.KeepMessagesDuration; import org.thoughtcrime.securesms.keyvalue.SignalStore; import org.thoughtcrime.securesms.recipients.Recipient; import org.thoughtcrime.securesms.util.TextSecurePreferences; -import org.thoughtcrime.securesms.util.Util; final class LogSectionKeyPreferences implements LogSection { @@ -22,8 +21,6 @@ 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(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") .append("Client Deprecated : ").append(SignalStore.misc().isClientDeprecated()).append("\n") diff --git a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionSMS.kt b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionSMS.kt new file mode 100644 index 000000000..763cffc56 --- /dev/null +++ b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionSMS.kt @@ -0,0 +1,25 @@ +package org.thoughtcrime.securesms.logsubmit + +import android.content.Context +import org.thoughtcrime.securesms.keyvalue.SignalStore +import org.thoughtcrime.securesms.util.Util + +/** + * Prints off the current SMS settings + */ + +class LogSectionSMS : LogSection { + override fun getTitle(): String = "SMS" + + override fun getContent(context: Context): CharSequence { + val isDefaultSMS = Util.isDefaultSmsProvider(context) + val settings = SignalStore.settings() + val output = StringBuilder() + + output.append("Default SMS : ${isDefaultSMS}\n") + output.append("SMS delivery reports : ${settings.isSmsDeliveryReportsEnabled}\n") + output.append("WiFi SMS : ${settings.isWifiCallingCompatibilityModeEnabled}\n") + + return output + } +} diff --git a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/SubmitDebugLogRepository.java b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/SubmitDebugLogRepository.java index 832fa279b..7bb05c8c9 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/SubmitDebugLogRepository.java +++ b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/SubmitDebugLogRepository.java @@ -80,6 +80,7 @@ public class SubmitDebugLogRepository { add(new LogSectionNotificationProfiles()); add(new LogSectionExoPlayerPool()); add(new LogSectionKeyPreferences()); + add(new LogSectionSMS()); add(new LogSectionBadges()); add(new LogSectionPermissions()); add(new LogSectionTrace());