mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 11:46:32 +00:00
fixes
This commit is contained in:
parent
d50e73cdcf
commit
fce589d973
5 changed files with 21 additions and 16 deletions
|
|
@ -332,11 +332,16 @@ class UserRepositoryImpl(
|
|||
}
|
||||
}
|
||||
}
|
||||
var updatePath = "preferences.$type"
|
||||
if (category != null) {
|
||||
updatePath = "$updatePath.$category"
|
||||
if (type == "background") {
|
||||
apiClient.unlockPath("background.$identifier")
|
||||
return retrieveUser(false, true)
|
||||
} else {
|
||||
var updatePath = "preferences.$type"
|
||||
if (category != null) {
|
||||
updatePath = "$updatePath.$category"
|
||||
}
|
||||
return updateUser(updatePath, identifier)
|
||||
}
|
||||
return updateUser(updatePath, identifier)
|
||||
}
|
||||
|
||||
override suspend fun retrieveAchievements(): List<Achievement>? {
|
||||
|
|
|
|||
|
|
@ -168,8 +168,9 @@ class CustomizationRecyclerViewAdapter() : androidx.recyclerview.widget.Recycler
|
|||
this.customization = customization
|
||||
|
||||
if (customization.type == "background" && customization.identifier == "") {
|
||||
binding.imageView.setImageResource(R.drawable.no_background)
|
||||
binding.imageView.bitmap = null
|
||||
binding.imageView.tag = null
|
||||
binding.imageView.setImageResource(R.drawable.no_background)
|
||||
} else {
|
||||
binding.imageView.loadImage(customization.getIconName(userSize, hairColor))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,9 @@ class AvatarCustomizationFragment :
|
|||
showsBackButton = true
|
||||
adapter.onCustomizationSelected = { customization ->
|
||||
lifecycleScope.launchCatching {
|
||||
if (customization.type == "background" && ownedCustomizations.value.firstOrNull { it.key == customization.identifier } == null) {
|
||||
if (customization.identifier?.isNotBlank() != true) {
|
||||
userRepository.useCustomization(customization.type ?: "", customization.category, activeCustomization ?: "")
|
||||
} else if (customization.type == "background" && ownedCustomizations.value.firstOrNull { it.key == customization.identifier } == null) {
|
||||
userRepository.unlockPath(customization)
|
||||
userRepository.retrieveUser(false, true, true)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
New in 4.1:
|
||||
-You can view, complete, assign, and add tasks to your Group Plan's shared task board!
|
||||
New in 4.1.2:
|
||||
-Fixed equipping a blank background, buying animal ears/tails, and the task create button in light mode
|
||||
-You can view, complete, assign, and add tasks to your Group Plan’s shared task board!
|
||||
-Tap your name on a task screen to switch to different task boards
|
||||
-Task details are now tinted based on task health
|
||||
-More intuitive system notification settings
|
||||
-New Avatar Customization interface
|
||||
-Audio will be controlled by media volume now
|
||||
-Task details are now tinted based on task health
|
||||
-Fixed a bug that caused tasks to shuffle around
|
||||
-Monthly Dailies should recur more consistently now
|
||||
-More intuitive system notification settings
|
||||
-Improved link support
|
||||
-More special event support
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
NAME=4.1.1
|
||||
CODE=5151
|
||||
NAME=4.1.2
|
||||
CODE=5201
|
||||
Loading…
Reference in a new issue