hide tags title in form for challenge tasks

This commit is contained in:
Phillip Thelen 2019-04-24 12:11:41 +02:00
parent f2e0352664
commit ad12aeb9fe
2 changed files with 3 additions and 0 deletions

View file

@ -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"

View file

@ -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