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"
|
applicationId = "cn.super12138.todo"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 729
|
versionCode = 730
|
||||||
versionName = "2.1.2"
|
versionName = "2.1.2"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ fun TodoNavigation(
|
||||||
|
|
||||||
composable(TodoScreen.SettingsAbout.name) {
|
composable(TodoScreen.SettingsAbout.name) {
|
||||||
SettingsAbout(
|
SettingsAbout(
|
||||||
toSpecialPage = { navController.navigate(TodoScreen.SettingsAboutSpecial.name) },
|
//toSpecialPage = { navController.navigate(TodoScreen.SettingsAboutSpecial.name) },
|
||||||
toLicencePage = { navController.navigate(TodoScreen.SettingsAboutLicence.name) },
|
toLicencePage = { navController.navigate(TodoScreen.SettingsAboutLicence.name) },
|
||||||
onNavigateUp = { navController.navigateUp() },
|
onNavigateUp = { navController.navigateUp() },
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,6 @@ enum class TodoScreen {
|
||||||
SettingsInterface,
|
SettingsInterface,
|
||||||
SettingsData,
|
SettingsData,
|
||||||
SettingsAbout,
|
SettingsAbout,
|
||||||
SettingsAboutSpecial,
|
//SettingsAboutSpecial,
|
||||||
SettingsAboutLicence
|
SettingsAboutLicence
|
||||||
}
|
}
|
||||||
|
|
@ -35,7 +35,7 @@ import kotlinx.coroutines.delay
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun SettingsAbout(
|
fun SettingsAbout(
|
||||||
toSpecialPage: () -> Unit,
|
//toSpecialPage: () -> Unit,
|
||||||
toLicencePage: () -> Unit,
|
toLicencePage: () -> Unit,
|
||||||
onNavigateUp: () -> Unit,
|
onNavigateUp: () -> Unit,
|
||||||
modifier: Modifier = Modifier
|
modifier: Modifier = Modifier
|
||||||
|
|
@ -79,7 +79,7 @@ fun SettingsAbout(
|
||||||
clickCount++
|
clickCount++
|
||||||
if (clickCount == 5) {
|
if (clickCount == 5) {
|
||||||
if ((System.currentTimeMillis() % 2) == 0.toLong()) {
|
if ((System.currentTimeMillis() % 2) == 0.toLong()) {
|
||||||
toSpecialPage()
|
Toast.makeText(context, "🍨", Toast.LENGTH_SHORT).show()
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(context, "✨", Toast.LENGTH_SHORT).show()
|
Toast.makeText(context, "✨", Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue