mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-17 03:09:00 +00:00
only dailies have startdate. Fixes #148
This commit is contained in:
parent
b7dc0925ae
commit
f8d7fd446f
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue