Some more minor changes

This commit is contained in:
Thompson3142 2024-12-16 20:26:01 +01:00
parent 0f0d610465
commit 2cf584b74b
2 changed files with 3 additions and 4 deletions

View File

@ -23,12 +23,12 @@ object AppLifecycleObserver : DefaultLifecycleObserver {
override fun onStart(owner: LifecycleOwner) { override fun onStart(owner: LifecycleOwner) {
editor.putBoolean(KEY_IS_IN_BACKGROUND, false).commit() 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) { override fun onPause(owner: LifecycleOwner) {
editor.putBoolean(KEY_IS_IN_BACKGROUND, true).commit() editor.putBoolean(KEY_IS_IN_BACKGROUND, true).commit()
Log.d(TAG, "App moved to background: ") Log.d(TAG, "App moved to background")
} }

View File

@ -36,8 +36,7 @@ class ErrorUtil {
* activity (since the workflow would be interrupted anyway in that case). So never use this * activity (since the workflow would be interrupted anyway in that case). So never use this
* for background services. * for background services.
* *
* If this method is called was called while the app was in the background previously open * If the crashed while the app was in the background open a notification instead
* a notification instead
* *
* @param context the context to use to start the new activity * @param context the context to use to start the new activity
* @param errorInfo the error info to be reported * @param errorInfo the error info to be reported