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
? newRemoteListSupportPicker(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;
case R.id.menu_select_all:
taskAdapter.setSelected(

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

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

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

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

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

Loading…
Cancel
Save