Extended debug info

pull/200/head
M66B 3 years ago
parent 620dea7035
commit 8573e2b707

@ -1631,6 +1631,8 @@ public class Log {
private static StringBuilder getAppInfo(Context context) { private static StringBuilder getAppInfo(Context context) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
PackageManager pm = context.getPackageManager(); PackageManager pm = context.getPackageManager();
String installer = pm.getInstallerPackageName(BuildConfig.APPLICATION_ID); String installer = pm.getInstallerPackageName(BuildConfig.APPLICATION_ID);
int targetSdk = -1; int targetSdk = -1;
@ -1668,7 +1670,9 @@ public class Log {
sb.append("\r\n"); sb.append("\r\n");
Locale slocale = Resources.getSystem().getConfiguration().locale; Locale slocale = Resources.getSystem().getConfiguration().locale;
sb.append(String.format("Locale: %s/%s\r\n", Locale.getDefault(), slocale)); String language = prefs.getString("language", null);
sb.append(String.format("Locale: def=%s sys=%s lang=%s\r\n",
Locale.getDefault(), slocale, language));
sb.append(String.format("Processors: %d\r\n", Runtime.getRuntime().availableProcessors())); sb.append(String.format("Processors: %d\r\n", Runtime.getRuntime().availableProcessors()));
@ -1745,7 +1749,6 @@ public class Log {
String charset = MimeUtility.getDefaultJavaCharset(); String charset = MimeUtility.getDefaultJavaCharset();
sb.append(String.format("Default charset: %s/%s\r\n", charset, MimeUtility.mimeCharset(charset))); sb.append(String.format("Default charset: %s/%s\r\n", charset, MimeUtility.mimeCharset(charset)));
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean reporting = prefs.getBoolean("crash_reports", false); boolean reporting = prefs.getBoolean("crash_reports", false);
if (reporting) { if (reporting) {
String uuid = prefs.getString("uuid", null); String uuid = prefs.getString("uuid", null);

Loading…
Cancel
Save