mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Fix minor issues
This commit is contained in:
parent
93d7de39cd
commit
8f28ad9cf3
3 changed files with 10 additions and 13 deletions
|
|
@ -151,7 +151,7 @@ android {
|
|||
multiDexEnabled true
|
||||
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
|
||||
|
||||
versionCode 2296
|
||||
versionCode 2299
|
||||
versionName "2.3"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,11 +59,13 @@ class GiftBalanceGemsFragment : BaseFragment() {
|
|||
}
|
||||
|
||||
private fun sendGift() {
|
||||
val amount = giftEditText.text.toString().toInt()
|
||||
giftedMember?.id?.let {
|
||||
compositeSubscription.add(socialRepository.transferGems(it, amount).subscribe(Consumer {
|
||||
onCompleted?.invoke()
|
||||
}, RxErrorHandler.handleEmptyError()))
|
||||
}
|
||||
try {
|
||||
val amount = giftEditText.text.toString().toInt()
|
||||
giftedMember?.id?.let {
|
||||
compositeSubscription.add(socialRepository.transferGems(it, amount).subscribe(Consumer {
|
||||
onCompleted?.invoke()
|
||||
}, RxErrorHandler.handleEmptyError()))
|
||||
}
|
||||
} catch (ignored: NumberFormatException) {}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,6 @@ import android.os.Bundle
|
|||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.habitrpg.android.habitica.R
|
||||
|
|
@ -71,11 +70,7 @@ class SkillTasksRecyclerViewFragment : BaseFragment() {
|
|||
}, RxErrorHandler.handleEmptyError()))
|
||||
recyclerView?.adapter = adapter
|
||||
|
||||
context?.let {
|
||||
recyclerView?.setBackgroundColor(ContextCompat.getColor(it, R.color.blue_5))
|
||||
}
|
||||
|
||||
compositeSubscription.add(tasks.firstElement().subscribe(Consumer {
|
||||
compositeSubscription.add(tasks.subscribe(Consumer {
|
||||
adapter.updateData(it)
|
||||
}, RxErrorHandler.handleEmptyError()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue