Update apk

This commit is contained in:
Nezumi2711
2022-07-20 09:11:38 +07:00
parent f6f6d6fc6d
commit 821f418f7d
6 changed files with 11 additions and 6 deletions
@@ -71,11 +71,13 @@ class UpdateDialogActivity : AppCompatActivity(), View.OnClickListener {
val tvTitle = findViewById<TextView>(R.id.tv_title)
val tvSize = findViewById<TextView>(R.id.tv_size)
val tvDescription = findViewById<TextView>(R.id.tv_description)
progressBar = findViewById(R.id.np_bar)
btnUpdate = findViewById(R.id.btn_update)
progressBar.visibility = View.VISIBLE
btnUpdate.tag = 0
btnUpdate.setOnClickListener(this)
progressBar.visibility = View.GONE
ibClose.setOnClickListener(this)
if (manager.dialogImage != -1) {
ivBg.setBackgroundResource(manager.dialogImage)
@@ -133,6 +135,7 @@ class UpdateDialogActivity : AppCompatActivity(), View.OnClickListener {
return
}
if (!manager.forcedUpgrade) {
progressBar.visibility = View.VISIBLE
btnUpdate.isEnabled = false
btnUpdate.text = resources.getString(R.string.background_downloading)
} else {
@@ -4,7 +4,7 @@
<string name="start_download_hint">Bạn có thể kiểm tra tiến trình tải sau ít phút!</string>
<string name="start_downloading">Tải phiên bản mới</string>
<string name="download_completed">Đã tải xong</string>
<string name="click_hint">Nhấn đ cài đặt</string>
<string name="click_hint">Nhấn đ cài đặt</string>
<string name="download_error">Tải bị lỗi</string>
<string name="continue_downloading">Nhấn để tiếp tục tải</string>
<string name="background_downloading">Ứng dụng đang được tải ...</string>