Rename taskEditFinished to removeTaskEditFragment

pull/795/head
Alex Baker 6 years ago
parent f9ce2b5f55
commit c36f71705e

@ -198,7 +198,7 @@ public class MainActivity extends InjectingAppCompatActivity
|| intent.hasExtra(OPEN_TASK)
|| intent.hasExtra(OPEN_NEW_TASK)) {
taskEditFragment.save();
taskEditFinished();
removeTaskEditFragment();
} else {
showDetailFragment();
}
@ -455,7 +455,7 @@ public class MainActivity extends InjectingAppCompatActivity
}
@Override
public void taskEditFinished() {
public void removeTaskEditFragment() {
getSupportFragmentManager()
.popBackStackImmediate(
TaskEditFragment.TAG_TASKEDIT_FRAGMENT, FragmentManager.POP_BACK_STACK_INCLUSIVE);

@ -222,7 +222,7 @@ public final class TaskEditFragment extends InjectingFragment
} else {
((MainActivity) getActivity()).getTaskListFragment().onTaskSaved();
}
callback.taskEditFinished();
callback.removeTaskEditFragment();
} else {
discard();
}
@ -284,7 +284,7 @@ public final class TaskEditFragment extends InjectingFragment
timerPlugin.stopTimer(model);
}
callback.taskEditFinished();
callback.removeTaskEditFragment();
}
private void deleteButtonClick() {
@ -294,7 +294,7 @@ public final class TaskEditFragment extends InjectingFragment
android.R.string.ok,
(dialog, which) -> {
taskDeleter.markDeleted(model);
callback.taskEditFinished();
callback.removeTaskEditFragment();
})
.setNegativeButton(android.R.string.cancel, null)
.show();
@ -336,6 +336,6 @@ public final class TaskEditFragment extends InjectingFragment
public interface TaskEditFragmentCallbackHandler {
void taskEditFinished();
void removeTaskEditFragment();
}
}

Loading…
Cancel
Save