Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ece3b421 authored by d34d's avatar d34d Committed by Michael Bestas
Browse files

framework: Log applied theme when apps crash

For those times you find yourself asking someone submitting a bug
"Were you using a theme and if so which one?"

Change-Id: I94b7e886af4dd0d7468689645285b1eff03e06fb
TICKET: CYNGNOS-2059
parent 81f9dda9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.internal.os;
import android.app.ActivityManagerNative;
import android.app.ActivityThread;
import android.app.ApplicationErrorReport;
import android.content.res.ThemeConfig;
import android.os.Build;
import android.os.Debug;
import android.os.IBinder;
@@ -83,6 +84,10 @@ public class RuntimeInit {
                        message.append("Process: ").append(processName).append(", ");
                    }
                    message.append("PID: ").append(Process.myPid());
                    final ThemeConfig themeConfig =
                            ActivityManagerNative.getDefault().getConfiguration().themeConfig;
                    message.append("\nTheme: ").append(themeConfig == null ?
                            ThemeConfig.SYSTEM_DEFAULT : themeConfig);
                    Clog_e(TAG, message.toString(), e);
                }