mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 13:48:29 +00:00
Fix error dialog
This commit is contained in:
@@ -10,7 +10,7 @@ android {
|
|||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 30
|
targetSdk 30
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "88.0"
|
versionName "87.0"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,8 +182,6 @@ public class Home extends AppCompatActivity implements NavigationView.OnNavigati
|
|||||||
|
|
||||||
if(Double.parseDouble(versionNameApp) < Double.parseDouble(Common.versionAppNewest)){
|
if(Double.parseDouble(versionNameApp) < Double.parseDouble(Common.versionAppNewest)){
|
||||||
alertDialogUpdate();
|
alertDialogUpdate();
|
||||||
} else {
|
|
||||||
alertDialogNewest();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -276,7 +274,7 @@ public class Home extends AppCompatActivity implements NavigationView.OnNavigati
|
|||||||
private void alertDialogNewest() {
|
private void alertDialogNewest() {
|
||||||
AlertDialog alertDialog = new AlertDialog.Builder(Home.this)
|
AlertDialog alertDialog = new AlertDialog.Builder(Home.this)
|
||||||
.setTitle("Thông báo!")
|
.setTitle("Thông báo!")
|
||||||
.setMessage("Hiện tại đã có phiên bản mới hơn! Vui lòng cập nhật ứng dụng để mang đến những trải nghiệm tốt nhất!")
|
.setMessage("Bạn đã cập nhật phiên bản mới nhất!")
|
||||||
.setPositiveButton("Tôi biết rồi", null)
|
.setPositiveButton("Tôi biết rồi", null)
|
||||||
.create();
|
.create();
|
||||||
alertDialog.show();
|
alertDialog.show();
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user