Restore finish from SelectSiteScreen
This commit is contained in:
1 parent
30f1a5a6eb
commit
8e39449856
2 files changed
+5
-3
No files matched your search
@@ -33,7 +33,9 @@ class LoginActivity : ComponentActivity() {
|
||||
}
|
||||
|
||||
composable(SELECT_SITE_ROUTE_NAME) {
|
||||
SelectSiteScreen()
|
||||
SelectSiteScreen() {
|
||||
finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ import com.hippo.ehviewer.Settings
|
||||
import com.hippo.ehviewer.client.EhUrl
|
||||
|
||||
@Composable
|
||||
fun SelectSiteScreen() {
|
||||
fun SelectSiteScreen(finish: () -> Unit) {
|
||||
var site by remember { mutableStateOf(EhApplication.ehCookieStore.hasSignedIn()) } // false for e, true for ex
|
||||
|
||||
Column(
|
||||
@@ -112,7 +112,7 @@ fun SelectSiteScreen() {
|
||||
Settings.putGallerySite(EhUrl.SITE_E)
|
||||
else
|
||||
Settings.putGallerySite(EhUrl.SITE_EX)
|
||||
// finish activity
|
||||
finish()
|
||||
}, Modifier.fillMaxWidth()) {
|
||||
Text(text = stringResource(id = android.R.string.ok))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user