Skip to content

Commit

Permalink
Hotfix v1.1.1 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohankhayech authored Aug 22, 2023
2 parents f29b2e6 + d213aa8 commit 6c64d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.rohankhayech.choona"
minSdkVersion 24
targetSdkVersion 33
versionCode 3
versionName "1.1.0"
versionCode 4
versionName "1.1.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fun TuningList(
// Current Tuning
current?.let {
item("cur") { SectionLabel(stringResource(R.string.tuning_list_current)) }
item("cur-${current.name}") {
item("cur-[${current.toFullString()}]") {
val saved = remember(current, custom, common) { current.hasEquivalentIn(custom+common) }
CurrentTuningItem(tuning = current, saved = saved, onSave = onSave, onSelect = onSelect)
}
Expand All @@ -228,23 +228,23 @@ fun TuningList(
// Favourite Tunings
if (favourites.isNotEmpty()) {
item("favs") { SectionLabel(stringResource(R.string.tuning_list_favourites)) }
items(favsList, key = { "fav-${it.name}" }) {
items(favsList, key = { "fav-[${it.toFullString()}]" }) {
FavouritableTuningItem(tuning = it, favourited = true, onFavouriteSet = onFavouriteSet, onSelect = onSelect)
}
}

// Custom Tunings
if (custom.isNotEmpty()) {
item("cus") { SectionLabel(stringResource(R.string.tuning_list_custom)) }
items(customList, key = { it.name }) {
items(customList, key = { "[${it.toFullString()}]" }) {
val favourited = remember(favourites) { it.hasEquivalentIn(favourites) }
CustomTuningItem(tuning = it, favourited = favourited, onFavouriteSet = onFavouriteSet, onSelect = onSelect, onDelete = onDelete)
}
}

// Common Tunings
item("com") { SectionLabel(stringResource(R.string.tuning_list_common)) }
items(commonList, key = { it.name }) {
items(commonList, key = { "[${it.toFullString()}]" }) {
val favourited = remember(favourites) { it.hasEquivalentIn(favourites) }
FavouritableTuningItem(tuning = it, favourited = favourited, onFavouriteSet = onFavouriteSet, onSelect = onSelect)
}
Expand Down

0 comments on commit 6c64d2b

Please sign in to comment.