mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 21:57:11 +00:00
hide tags title in form for challenge tasks
This commit is contained in:
parent
f2e0352664
commit
ad12aeb9fe
2 changed files with 3 additions and 0 deletions
|
|
@ -225,6 +225,7 @@
|
|||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/tags_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/tags"
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ class TaskFormActivity : BaseActivity() {
|
|||
private val rewardValueTitleView: TextView by bindView(R.id.reward_value_title)
|
||||
private val rewardValueFormView: RewardValueFormView by bindView(R.id.reward_value)
|
||||
|
||||
private val tagsTitleView: TextView by bindView(R.id.tags_title)
|
||||
private val tagsWrapper: LinearLayout by bindView(R.id.tags_wrapper)
|
||||
|
||||
private var isCreating = true
|
||||
|
|
@ -214,6 +215,7 @@ class TaskFormActivity : BaseActivity() {
|
|||
rewardValueTitleView.visibility = rewardViewsVisibility
|
||||
rewardValueFormView.visibility = rewardViewsVisibility
|
||||
|
||||
tagsTitleView.visibility = if (isChallengeTask) View.GONE else View.VISIBLE
|
||||
tagsWrapper.visibility = if (isChallengeTask) View.GONE else View.VISIBLE
|
||||
|
||||
statWrapper.visibility = if (usesTaskAttributeStats) View.VISIBLE else View.GONE
|
||||
|
|
|
|||
Loading…
Reference in a new issue