fix: 无效页面
This commit is contained in:
parent
fe15f9f62d
commit
892606dc15
4 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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() },
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@ enum class TodoScreen {
|
|||
SettingsInterface,
|
||||
SettingsData,
|
||||
SettingsAbout,
|
||||
SettingsAboutSpecial,
|
||||
//SettingsAboutSpecial,
|
||||
SettingsAboutLicence
|
||||
}
|
||||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue