Added the Auto Update Check Feature
This commit is contained in:
@@ -22,6 +22,7 @@ import `in`.sminnovations.attendanceapp.screens.settings.ui.components.subSettin
|
|||||||
fun NetworkErrorDialog(
|
fun NetworkErrorDialog(
|
||||||
showDialog: Boolean,
|
showDialog: Boolean,
|
||||||
onRetry: () -> Unit,
|
onRetry: () -> Unit,
|
||||||
|
onCheckForUpdate: () -> Unit
|
||||||
) {
|
) {
|
||||||
if (!showDialog) return
|
if (!showDialog) return
|
||||||
|
|
||||||
@@ -40,7 +41,7 @@ fun NetworkErrorDialog(
|
|||||||
},
|
},
|
||||||
text = {
|
text = {
|
||||||
if (showSettingDialog) {
|
if (showSettingDialog) {
|
||||||
AboutSettings(context = context)
|
AboutSettings(context = context, onCheckForUpdate)
|
||||||
} else {
|
} else {
|
||||||
Text(
|
Text(
|
||||||
text = "Network is not connected. Please check your Wi-Fi or mobile data.\n\nIf Wi-Fi is just connected, wait for a while and then press retry.",
|
text = "Network is not connected. Please check your Wi-Fi or mobile data.\n\nIf Wi-Fi is just connected, wait for a while and then press retry.",
|
||||||
|
|||||||
Reference in New Issue
Block a user