Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 65cd47b

Browse files
authored
fix #24: invalid foreach indexed fixed (#27)
1 parent e15f902 commit 65cd47b

File tree

1 file changed

+1
-1
lines changed
  • app-core/src/main/java/com/codee/app/core/extensions

1 file changed

+1
-1
lines changed

‎app-core/src/main/java/com/codee/app/core/extensions/Localized.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun <T> Localized<T>.localize(): T {
1818
// getLocales returns custom class, not list
1919
val locales = mutableListOf<Locale>().apply {
2020
val list = ConfigurationCompat.getLocales(context.resources.configuration)
21-
for(i in 1..list.size())
21+
for(i in 0 until list.size())
2222
add(list[i].toCodeeLocale())
2323
}
2424

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /