kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
4da422fd3c
commit
b282b775d0
|
@ -8,7 +8,6 @@ import org.thoughtcrime.securesms.keyvalue.KeepMessagesDuration;
|
||||||
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
||||||
import org.thoughtcrime.securesms.recipients.Recipient;
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
||||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||||
import org.thoughtcrime.securesms.util.Util;
|
|
||||||
|
|
||||||
final class LogSectionKeyPreferences implements LogSection {
|
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")
|
return new StringBuilder().append("Screen Lock : ").append(TextSecurePreferences.isScreenLockEnabled(context)).append("\n")
|
||||||
.append("Screen Lock Timeout : ").append(TextSecurePreferences.getScreenLockTimeout(context)).append("\n")
|
.append("Screen Lock Timeout : ").append(TextSecurePreferences.getScreenLockTimeout(context)).append("\n")
|
||||||
.append("Password Disabled : ").append(TextSecurePreferences.isPasswordDisabled(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("Prefer Contact Photos: ").append(SignalStore.settings().isPreferSystemContactPhotos()).append("\n")
|
||||||
.append("Call Bandwidth Mode : ").append(SignalStore.settings().getCallBandwidthMode()).append("\n")
|
.append("Call Bandwidth Mode : ").append(SignalStore.settings().getCallBandwidthMode()).append("\n")
|
||||||
.append("Client Deprecated : ").append(SignalStore.misc().isClientDeprecated()).append("\n")
|
.append("Client Deprecated : ").append(SignalStore.misc().isClientDeprecated()).append("\n")
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
|
@ -80,6 +80,7 @@ public class SubmitDebugLogRepository {
|
||||||
add(new LogSectionNotificationProfiles());
|
add(new LogSectionNotificationProfiles());
|
||||||
add(new LogSectionExoPlayerPool());
|
add(new LogSectionExoPlayerPool());
|
||||||
add(new LogSectionKeyPreferences());
|
add(new LogSectionKeyPreferences());
|
||||||
|
add(new LogSectionSMS());
|
||||||
add(new LogSectionBadges());
|
add(new LogSectionBadges());
|
||||||
add(new LogSectionPermissions());
|
add(new LogSectionPermissions());
|
||||||
add(new LogSectionTrace());
|
add(new LogSectionTrace());
|
||||||
|
|
Ładowanie…
Reference in New Issue