Added the Auto Update Check Feature

This commit is contained in:
sathwikcs
2025-02-07 14:58:42 +05:30
parent 9925b9b8aa
commit 951bd2f8c6

View File

@@ -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.",