Verified Commit d4dd9f89 authored by clairehurst's avatar clairehurst 🌱 Committed by boklm
Browse files

TB 44196: [android] Persistent notification sometimes does not clear

parent 0f091846
Loading
Loading
Loading
Loading
+2 −0
Changes for mobile/android/fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1871,6 +1871,8 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, Crash
    }

    fun shutDown() : Nothing {
        // If we don't manually stop the service, the persistent "close tabs" notification sometimes does not clear
        applicationContext.stopService(Intent(applicationContext, PrivateNotificationService::class.java))
        finishAndRemoveTask()
        components.torController.shutdown()
        exitProcess(0)