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