mirror of
https://github.com/easychen/pushdeer.git
synced 2025-01-10 23:15:30 +08:00
修复设置界面不显示用户名的bug
This commit is contained in:
parent
f31912edae
commit
67e756900e
@ -11,8 +11,8 @@ android {
|
|||||||
applicationId "com.pushdeer.os"
|
applicationId "com.pushdeer.os"
|
||||||
minSdk 22
|
minSdk 22
|
||||||
targetSdk 31
|
targetSdk 31
|
||||||
versionCode 4
|
versionCode 5
|
||||||
versionName "1.0-dev-4"
|
versionName "1.0-dev-5"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
|
@ -26,11 +26,17 @@ import com.pushdeer.os.holder.RequestHolder
|
|||||||
import com.pushdeer.os.ui.navigation.Page
|
import com.pushdeer.os.ui.navigation.Page
|
||||||
import com.pushdeer.os.ui.navigation.pageList
|
import com.pushdeer.os.ui.navigation.pageList
|
||||||
import com.pushdeer.os.ui.theme.mainBottomBtn
|
import com.pushdeer.os.ui.theme.mainBottomBtn
|
||||||
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@ExperimentalAnimationApi
|
@ExperimentalAnimationApi
|
||||||
@ExperimentalMaterialApi
|
@ExperimentalMaterialApi
|
||||||
@Composable
|
@Composable
|
||||||
fun MainPage(requestHolder: RequestHolder) {
|
fun MainPage(requestHolder: RequestHolder) {
|
||||||
|
LaunchedEffect(Unit) {
|
||||||
|
requestHolder.coroutineScope.launch {
|
||||||
|
requestHolder.pushDeerViewModel.userInfo()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var titleStringId by remember {
|
var titleStringId by remember {
|
||||||
mutableStateOf(Page.Messages.labelStringId)
|
mutableStateOf(Page.Messages.labelStringId)
|
||||||
|
Loading…
Reference in New Issue
Block a user