From f8d7fd446f190ffaf67b240309cdfdce46080311 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Wed, 9 Dec 2015 01:03:40 +0100 Subject: [PATCH] only dailies have startdate. Fixes #148 --- .../src/com/habitrpg/android/habitica/TaskFormActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Habitica/src/com/habitrpg/android/habitica/TaskFormActivity.java b/Habitica/src/com/habitrpg/android/habitica/TaskFormActivity.java index 9c0d884bb..c0e2ec659 100644 --- a/Habitica/src/com/habitrpg/android/habitica/TaskFormActivity.java +++ b/Habitica/src/com/habitrpg/android/habitica/TaskFormActivity.java @@ -109,8 +109,8 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O public void onClick(View view) { new AlertDialog.Builder(view.getContext()) - .setTitle("Are you sure?") - .setMessage("Do you really want to delete?").setPositiveButton("Yes", new DialogInterface.OnClickListener() { + .setTitle("Are you sure?") + .setMessage("Do you really want to delete?").setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { task.delete(); @@ -166,6 +166,7 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O this.frequencyContainer = (LinearLayout) weekdayWrapper.findViewById(R.id.task_frequency_container); } else { mainWrapper.removeView(weekdayWrapper); + mainWrapper.removeView(startDateWrapper); } if (!taskType.equals("reward")) { @@ -173,7 +174,6 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O } else { mainWrapper.removeView(checklistWrapper); - mainWrapper.removeView(startDateWrapper); difficultyWrapper.setVisibility(View.GONE); }