-
Notifications
You must be signed in to change notification settings - Fork 496
Fix various code smells and refactor our Application class #1221
Conversation
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/WatchdogService.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@OnLifecycleEvent(Lifecycle.Event.ON_START) | ||
fun onAppForegrounded() { | ||
isAppInForeground = true | ||
Timber.v("App is in the foreground") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need these Timber logs? Same below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there before I refactored, but I also like it because it gives us more clues about what happened when the testers provide us with a log where there was an issue, we'll know whether the app was in the foreground or background etc. I'm usually a fan of extensive debug logging, huge gains when we encounter heisenbugs 😁.
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Description
Fix various code 👃 and refactor our Application class.
i.e. https://sonarcloud.io/project/issues?branch=fix%2Fflaky-downloader-test&id=corona-warn-app_cwa-app-android&resolved=false&types=CODE_SMELL
How to test