forked from upstream-mirrors/OpenTracks
Bugfix: import/export all now react to back button.
This commit is contained in:
@@ -71,7 +71,6 @@ public class FileTypeDialogFragment extends AbstractDialogFragment {
|
|||||||
FileUtils.getPathDisplayName(trackFileFormat.getExtension()));
|
FileUtils.getPathDisplayName(trackFileFormat.getExtension()));
|
||||||
}
|
}
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setCancelable(true)
|
|
||||||
.setNegativeButton(R.string.generic_cancel, new OnClickListener() {
|
.setNegativeButton(R.string.generic_cancel, new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
@@ -87,15 +86,14 @@ public class FileTypeDialogFragment extends AbstractDialogFragment {
|
|||||||
})
|
})
|
||||||
.setSingleChoiceItems(choices, 0, null)
|
.setSingleChoiceItems(choices, 0, null)
|
||||||
.setTitle(titleId)
|
.setTitle(titleId)
|
||||||
.setOnCancelListener(new DialogInterface.OnCancelListener() {
|
|
||||||
@Override
|
|
||||||
public void onCancel(DialogInterface dialog) {
|
|
||||||
onDismissed();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.create();
|
.create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCancel(DialogInterface dialog) {
|
||||||
|
onDismissed();
|
||||||
|
}
|
||||||
|
|
||||||
protected void onDismissed() {
|
protected void onDismissed() {
|
||||||
dismiss();
|
dismiss();
|
||||||
caller.onDismissed();
|
caller.onDismissed();
|
||||||
|
|||||||
Reference in New Issue
Block a user