Skip to content

Commit

Permalink
Some more minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thompson3142 committed Dec 16, 2024
1 parent 0f0d610 commit 2cf584b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}


Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cf584b

Please sign in to comment.