Skip to content

Commit a94b51d

Browse files
committed
fix:カウント表示文字列の重複と不整合の修正
1 parent e6cfc32 commit a94b51d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

app/src/main/kotlin/jp/co/yumemi/android/code_check/core/presenter/detail/RepositoryDetailScreen.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fun RepositoryStatsCard(repository: RepositoryEntity) {
194194
)
195195
Spacer(modifier = Modifier.width(8.dp))
196196
Text(
197-
text = context.getString(R.string.stars_count_format, repository.stargazersCount),
197+
text = context.getString(R.string.stars_count, repository.stargazersCount),
198198
fontSize = 18.sp,
199199
fontWeight = FontWeight.Medium,
200200
)
@@ -209,7 +209,7 @@ fun RepositoryStatsCard(repository: RepositoryEntity) {
209209
)
210210
Spacer(modifier = Modifier.width(8.dp))
211211
Text(
212-
text = context.getString(R.string.forks_count_format, repository.forksCount),
212+
text = context.getString(R.string.forks_count, repository.forksCount),
213213
fontSize = 18.sp,
214214
fontWeight = FontWeight.Medium,
215215
)
@@ -224,7 +224,7 @@ fun RepositoryStatsCard(repository: RepositoryEntity) {
224224
)
225225
Spacer(modifier = Modifier.width(8.dp))
226226
Text(
227-
text = context.getString(R.string.issues_count_format, repository.openIssuesCount),
227+
text = context.getString(R.string.open_issues_count, repository.openIssuesCount),
228228
fontSize = 18.sp,
229229
fontWeight = FontWeight.Medium,
230230
)

app/src/main/res/values/strings.xml

-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,4 @@
2626
<string name="empty_state_icon_description">検索アイコン</string>
2727
<string name="empty_state_title">リポジトリが見つかりません</string>
2828
<string name="empty_state_description">検索ワードを入力してリポジトリを探してください</string>
29-
<string name="stars_count_format">Stars: %d</string>
30-
<string name="forks_count_format">Forks: %d</string>
31-
<string name="issues_count_format">Open Issues: %d</string>
3229
</resources>

0 commit comments

Comments
 (0)