From 2cf584b74b9db64268232f1ef2d51518ba5d7a80 Mon Sep 17 00:00:00 2001 From: Thompson3142 Date: Mon, 16 Dec 2024 20:26:01 +0100 Subject: [PATCH] Some more minor changes --- .../java/org/schabi/newpipe/error/AppLifecycleObserver.kt | 4 ++-- app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/error/AppLifecycleObserver.kt b/app/src/main/java/org/schabi/newpipe/error/AppLifecycleObserver.kt index 25f63a437..7a3d9b857 100644 --- a/app/src/main/java/org/schabi/newpipe/error/AppLifecycleObserver.kt +++ b/app/src/main/java/org/schabi/newpipe/error/AppLifecycleObserver.kt @@ -23,12 +23,12 @@ object AppLifecycleObserver : DefaultLifecycleObserver { override fun onStart(owner: LifecycleOwner) { editor.putBoolean(KEY_IS_IN_BACKGROUND, false).commit() - Log.d(TAG, "App moved to foreground: ") + Log.d(TAG, "App moved to foreground") } override fun onPause(owner: LifecycleOwner) { editor.putBoolean(KEY_IS_IN_BACKGROUND, true).commit() - Log.d(TAG, "App moved to background: ") + Log.d(TAG, "App moved to background") } diff --git a/app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt b/app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt index 5704f5863..f89cac347 100644 --- a/app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt +++ b/app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt @@ -36,8 +36,7 @@ class ErrorUtil { * activity (since the workflow would be interrupted anyway in that case). So never use this * for background services. * - * If this method is called was called while the app was in the background previously open - * a notification instead + * If the crashed while the app was in the background open a notification instead * * @param context the context to use to start the new activity * @param errorInfo the error info to be reported