禁止在主页进行unfollow操作
This commit is contained in:
@@ -282,11 +282,12 @@ fun MomentTopRowGroup(
|
||||
MomentPostLocation(momentEntity.location)
|
||||
}
|
||||
}
|
||||
if (showFollowButton) {
|
||||
val isFollowing = momentEntity.followStatus
|
||||
if (showFollowButton && !isFollowing) {
|
||||
Spacer(modifier = Modifier.width(16.dp))
|
||||
if (AppState.UserId != momentEntity.authorId) {
|
||||
FollowButton(
|
||||
isFollowing = momentEntity.followStatus
|
||||
isFollowing = false
|
||||
) {
|
||||
onFollowClick()
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
@@ -163,7 +164,7 @@ fun CheckUpdateDialog() {
|
||||
) {
|
||||
Spacer(modifier = Modifier.height(48.dp))
|
||||
Text(
|
||||
"New version",
|
||||
stringResource(id = R.string.update_find_new_version),
|
||||
fontWeight = FontWeight.W900,
|
||||
fontSize = 22.sp,
|
||||
color = AppColors.text
|
||||
@@ -196,7 +197,7 @@ fun CheckUpdateDialog() {
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
ActionButton(
|
||||
text = "Cancel",
|
||||
text = stringResource(id = R.string.update_later),
|
||||
color = AppColors.text,
|
||||
backgroundColor = AppColors.basicMain,
|
||||
modifier = Modifier.weight(1f),
|
||||
@@ -209,7 +210,7 @@ fun CheckUpdateDialog() {
|
||||
}
|
||||
Spacer(modifier = Modifier.width(16.dp))
|
||||
ActionButton(
|
||||
text = "Update",
|
||||
text = stringResource(id = R.string.update_update_now),
|
||||
backgroundColor = AppColors.main,
|
||||
color = AppColors.mainText,
|
||||
modifier = Modifier.weight(1f),
|
||||
|
||||
@@ -259,6 +259,8 @@ fun ProfileV3(
|
||||
tint = AppColors.text
|
||||
)
|
||||
}
|
||||
val themeModeString =
|
||||
if (AppState.darkMode) R.string.light_mode else R.string.dark_mode
|
||||
DropdownMenu(
|
||||
expanded = expanded,
|
||||
onDismissRequest = { expanded = false },
|
||||
@@ -297,7 +299,7 @@ fun ProfileV3(
|
||||
}
|
||||
},
|
||||
MenuItem(
|
||||
stringResource(R.string.dark_mode),
|
||||
stringResource(themeModeString),
|
||||
R.drawable.rider_pro_theme_mode_light
|
||||
) {
|
||||
expanded = false
|
||||
|
||||
Reference in New Issue
Block a user