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