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(
|
||||
showDialog: Boolean,
|
||||
onRetry: () -> Unit,
|
||||
onCheckForUpdate: () -> Unit
|
||||
) {
|
||||
if (!showDialog) return
|
||||
|
||||
@@ -40,7 +41,7 @@ fun NetworkErrorDialog(
|
||||
},
|
||||
text = {
|
||||
if (showSettingDialog) {
|
||||
AboutSettings(context = context)
|
||||
AboutSettings(context = context, onCheckForUpdate)
|
||||
} else {
|
||||
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.",
|
||||
|
||||
Reference in New Issue
Block a user