Skip to content

Commit

Permalink
sync: better download check (fixes #3348) (#3352)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Apr 4, 2024
1 parent 77cbb5c commit 7f2929f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1468
versionName "0.14.68"
versionCode 1469
versionName "0.14.69"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class ProcessUserDataActivity : PermissionActivity(), SuccessListener {

fun checkDownloadResult(download: Download?) {
runOnUiThread {
if (!isFinishing) {
if (!isFinishing && !isDestroyed) {
customProgressDialog?.show()
customProgressDialog?.setText("${getString(R.string.downloading)} ${download?.progress}% ${getString(R.string.complete)}")
customProgressDialog?.setProgress(download?.progress ?: 0)
Expand Down

0 comments on commit 7f2929f

Please sign in to comment.