mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 04:39:04 +00:00
fix taskform for rewards - no checklist, startDate and difficulty
This commit is contained in:
parent
19836c0563
commit
26804dfc36
2 changed files with 17 additions and 1 deletions
|
|
@ -66,7 +66,8 @@
|
|||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/task_difficulty_wrapper">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
|
|
|
|||
|
|
@ -72,6 +72,15 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O
|
|||
@InjectView(R.id.task_value_layout)
|
||||
TextInputLayout taskValueLayout;
|
||||
|
||||
@InjectView(R.id.task_checklist_wrapper)
|
||||
LinearLayout checklistWrapper;
|
||||
|
||||
@InjectView(R.id.task_startdate_layout)
|
||||
LinearLayout startDateWrapper;
|
||||
|
||||
@InjectView(R.id.task_difficulty_wrapper)
|
||||
LinearLayout difficultyWrapper;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
@ -160,6 +169,12 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O
|
|||
|
||||
if (!taskType.equals("reward")) {
|
||||
taskValueLayout.setVisibility(View.GONE);
|
||||
} else {
|
||||
|
||||
mainWrapper.removeView(checklistWrapper);
|
||||
mainWrapper.removeView(startDateWrapper);
|
||||
|
||||
difficultyWrapper.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (taskId != null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue