mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 13:48:29 +00:00
Merge branch 'main' of https://github.com/Nezumi2711/PRM392
This commit is contained in:
@@ -138,4 +138,6 @@ public class Welcome extends AppCompatActivity {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/bold"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_gravity="center"
|
||||
android:textAlignment="center"
|
||||
android:layout_marginRight="16dp"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="18sp"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user