Skip to content

Commit

Permalink
feat: change !! to ?
Browse files Browse the repository at this point in the history
  • Loading branch information
cofbro committed Dec 16, 2023
1 parent e31f768 commit 1035790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/cofbro/qian/update/AutoUpdater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ class AutoUpdater(private val mContext: Context) {
@SuppressLint("SetTextI18n")
private fun updateDownloadProgress() {
val formattedNum = String.format("%.2f", progress)
mTextStatus!!.text = "$formattedNum%"
mProgress!!.progress = progress.toInt()
mTextStatus?.text = "$formattedNum%"
mProgress?.progress = progress.toInt()
}

private fun installAPK() {
Expand Down

0 comments on commit 1035790

Please sign in to comment.