Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cwa App Android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Foertsch
Cwa App Android
Commits
16fd9dab
Unverified
Commit
16fd9dab
authored
4 years ago
by
Hee Tatt Ooi
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bugfix for in app update (#361)
parent
7db5d8e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/update/UpdateChecker.kt
+7
-5
7 additions, 5 deletions
...rc/main/java/de/rki/coronawarnapp/update/UpdateChecker.kt
with
7 additions
and
5 deletions
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/update/UpdateChecker.kt
+
7
−
5
View file @
16fd9dab
...
...
@@ -6,7 +6,7 @@ import androidx.appcompat.app.AlertDialog
import
androidx.core.content.ContextCompat.startActivity
import
de.rki.coronawarnapp.BuildConfig
import
de.rki.coronawarnapp.R
import
de.rki.coronawarnapp.exception.
CwaSecurity
Exception
import
de.rki.coronawarnapp.exception.
ApplicationConfigurationCorrupt
Exception
import
de.rki.coronawarnapp.server.protocols.ApplicationConfigurationOuterClass
import
de.rki.coronawarnapp.service.applicationconfiguration.ApplicationConfigurationService
import
de.rki.coronawarnapp.ui.LauncherActivity
...
...
@@ -22,12 +22,14 @@ class UpdateChecker(private val activity: LauncherActivity) {
}
suspend
fun
checkForUpdate
()
{
// check if an update is needed based on server config
val
updateNeededFromServer
:
Boolean
=
try
{
checkIfUpdatesNeededFromServer
()
}
catch
(
exception
:
CwaSecurityException
)
{
Timber
.
e
(
"CwaSecurityException caught:%s"
,
exception
.
localizedMessage
)
}
catch
(
exception
:
ApplicationConfigurationCorruptException
)
{
Timber
.
e
(
"ApplicationConfigurationCorruptException caught:%s"
,
exception
.
localizedMessage
)
true
}
catch
(
exception
:
Exception
)
{
Timber
.
e
(
"Exception caught:%s"
,
exception
.
localizedMessage
)
...
...
@@ -83,7 +85,7 @@ class UpdateChecker(private val activity: LauncherActivity) {
minVersionFromServerString
)
Timber
.
e
(
"needs update:$needsImmediateUpdate"
)
return
tru
e
return
needsImmediateUpdat
e
}
private
fun
constructSemanticVersionString
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment