fix: 无效页面

This commit is contained in:
Super12138 2025-06-27 21:45:44 +08:00
parent fe15f9f62d
commit 892606dc15
4 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ android {
applicationId = "cn.super12138.todo"
minSdk = 24
targetSdk = 36
versionCode = 729
versionCode = 730
versionName = "2.1.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

View file

@ -117,7 +117,7 @@ fun TodoNavigation(
composable(TodoScreen.SettingsAbout.name) {
SettingsAbout(
toSpecialPage = { navController.navigate(TodoScreen.SettingsAboutSpecial.name) },
//toSpecialPage = { navController.navigate(TodoScreen.SettingsAboutSpecial.name) },
toLicencePage = { navController.navigate(TodoScreen.SettingsAboutLicence.name) },
onNavigateUp = { navController.navigateUp() },
)

View file

@ -8,6 +8,6 @@ enum class TodoScreen {
SettingsInterface,
SettingsData,
SettingsAbout,
SettingsAboutSpecial,
//SettingsAboutSpecial,
SettingsAboutLicence
}

View file

@ -35,7 +35,7 @@ import kotlinx.coroutines.delay
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun SettingsAbout(
toSpecialPage: () -> Unit,
//toSpecialPage: () -> Unit,
toLicencePage: () -> Unit,
onNavigateUp: () -> Unit,
modifier: Modifier = Modifier
@ -79,7 +79,7 @@ fun SettingsAbout(
clickCount++
if (clickCount == 5) {
if ((System.currentTimeMillis() % 2) == 0.toLong()) {
toSpecialPage()
Toast.makeText(context, "🍨", Toast.LENGTH_SHORT).show()
} else {
Toast.makeText(context, "", Toast.LENGTH_SHORT).show()
}