Include whether a user has a linked device in the debug log.

This commit is contained in:
Greyson Parrelli 2020-10-30 09:16:54 -04:00
parent da9064b714
commit 5ce09defca

View file

@ -58,6 +58,7 @@ public class LogSectionSystemInfo implements LogSection {
builder.append("Play Services : ").append(getPlayServicesString(context)).append("\n"); builder.append("Play Services : ").append(getPlayServicesString(context)).append("\n");
builder.append("FCM : ").append(!TextSecurePreferences.isFcmDisabled(context)).append("\n"); builder.append("FCM : ").append(!TextSecurePreferences.isFcmDisabled(context)).append("\n");
builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n"); builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n");
builder.append("Linked Devices: ").append(TextSecurePreferences.isMultiDevice(context)).append("\n");
builder.append("First Version : ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n"); builder.append("First Version : ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n");
builder.append("App : "); builder.append("App : ");
try { try {
@ -65,6 +66,8 @@ public class LogSectionSystemInfo implements LogSection {
.append(" ") .append(" ")
.append(pm.getPackageInfo(context.getPackageName(), 0).versionName) .append(pm.getPackageInfo(context.getPackageName(), 0).versionName)
.append(" (") .append(" (")
.append(BuildConfig.CANONICAL_VERSION_CODE)
.append(", ")
.append(Util.getManifestApkVersion(context)) .append(Util.getManifestApkVersion(context))
.append(")\n"); .append(")\n");
} catch (PackageManager.NameNotFoundException nnfe) { } catch (PackageManager.NameNotFoundException nnfe) {