From 6ac7a18bf56762ba777cb61b85829b60204e892b Mon Sep 17 00:00:00 2001 From: Adolfo Santiago Date: Sat, 25 Jun 2022 10:02:35 +0200 Subject: [PATCH] Remove last activity from CrashHandler --- .../java/com/keylesspalace/tusky/core/logging/CrashHandler.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/husky/app/src/main/java/com/keylesspalace/tusky/core/logging/CrashHandler.kt b/husky/app/src/main/java/com/keylesspalace/tusky/core/logging/CrashHandler.kt index 3ae88ea..cd0cdd6 100644 --- a/husky/app/src/main/java/com/keylesspalace/tusky/core/logging/CrashHandler.kt +++ b/husky/app/src/main/java/com/keylesspalace/tusky/core/logging/CrashHandler.kt @@ -150,6 +150,7 @@ class CrashHandler @Inject constructor( fun removeDefaultHandler() { Thread.setDefaultUncaughtExceptionHandler(defaultHandler) huskyApp.unregisterActivityLifecycleCallbacks(activityCallbacks) + lastActivity = null Timber.d("Remove default handler") }