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