Use getParentFragmentManager

pull/996/head
Alex Baker 5 years ago
parent fcf083c5fb
commit 98970c11f4

@ -754,7 +754,7 @@ public final class TaskListFragment extends InjectingFragment
(singleFilter == null (singleFilter == null
? newRemoteListSupportPicker(this, REQUEST_MOVE_TASKS) ? newRemoteListSupportPicker(this, REQUEST_MOVE_TASKS)
: newRemoteListSupportPicker(singleFilter, this, REQUEST_MOVE_TASKS)) : newRemoteListSupportPicker(singleFilter, this, REQUEST_MOVE_TASKS))
.show(getFragmentManager(), FRAG_TAG_REMOTE_LIST_PICKER); .show(getParentFragmentManager(), FRAG_TAG_REMOTE_LIST_PICKER);
return true; return true;
case R.id.menu_select_all: case R.id.menu_select_all:
taskAdapter.setSelected( taskAdapter.setSelected(

@ -87,7 +87,7 @@ public class FilesControlSet extends TaskEditControlFragment {
@OnClick(R.id.add_attachment) @OnClick(R.id.add_attachment)
void addAttachment(View view) { void addAttachment(View view) {
newAddAttachmentDialog(this).show(getFragmentManager(), FRAG_TAG_ADD_ATTACHMENT_DIALOG); newAddAttachmentDialog(this).show(getParentFragmentManager(), FRAG_TAG_ADD_ATTACHMENT_DIALOG);
} }
@Override @Override

@ -74,7 +74,7 @@ public class AddAttachmentDialog extends InjectingDialogFragment {
private void recordNote() { private void recordNote() {
newRecordAudioDialog((FilesControlSet) getTargetFragment(), REQUEST_AUDIO) newRecordAudioDialog((FilesControlSet) getTargetFragment(), REQUEST_AUDIO)
.show(getFragmentManager(), FRAG_TAG_RECORD_AUDIO); .show(getParentFragmentManager(), FRAG_TAG_RECORD_AUDIO);
} }
private void pickFromGallery() { private void pickFromGallery() {

@ -115,7 +115,7 @@ public class BasicRecurrenceDialog extends InjectingDialogFragment {
result = null; result = null;
} else if (i == 5) { } else if (i == 5) {
newCustomRecurrenceDialog((RepeatControlSet) getTargetFragment(), rrule, dueDate) newCustomRecurrenceDialog((RepeatControlSet) getTargetFragment(), rrule, dueDate)
.show(getFragmentManager(), FRAG_TAG_CUSTOM_RECURRENCE); .show(getParentFragmentManager(), FRAG_TAG_CUSTOM_RECURRENCE);
dialogInterface.dismiss(); dialogInterface.dismiss();
return; return;
} else { } else {

@ -214,7 +214,7 @@ public class LocationControlSet extends TaskEditControlFragment {
private void showGeofenceOptions() { private void showGeofenceOptions() {
GeofenceDialog dialog = newGeofenceDialog(location); GeofenceDialog dialog = newGeofenceDialog(location);
dialog.setTargetFragment(this, REQUEST_GEOFENCE_DETAILS); dialog.setTargetFragment(this, REQUEST_GEOFENCE_DETAILS);
dialog.show(getFragmentManager(), FRAG_TAG_LOCATION_DIALOG); dialog.show(getParentFragmentManager(), FRAG_TAG_LOCATION_DIALOG);
} }
@Override @Override

@ -162,7 +162,7 @@ public class RemoteListFragment extends TaskEditControlFragment {
private void openPicker() { private void openPicker() {
newRemoteListSupportPicker(selectedList, this, REQUEST_CODE_SELECT_LIST) newRemoteListSupportPicker(selectedList, this, REQUEST_CODE_SELECT_LIST)
.show(getFragmentManager(), FRAG_TAG_GOOGLE_TASK_LIST_SELECTION); .show(getParentFragmentManager(), FRAG_TAG_GOOGLE_TASK_LIST_SELECTION);
} }
@Override @Override

Loading…
Cancel
Save