forked from upstream-mirrors/OpenTracks
Removed custom styling of title divider of used dialogs (just too much code).
This commit is contained in:
@@ -169,15 +169,7 @@ public class ExportActivity extends FragmentActivity implements FileTypeDialogFr
|
||||
onDismissed();
|
||||
}
|
||||
}).setTitle(titleId);
|
||||
final Dialog dialog = builder.create();
|
||||
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
|
||||
|
||||
@Override
|
||||
public void onShow(DialogInterface dialogInterface) {
|
||||
DialogUtils.setDialogTitleDivider(ExportActivity.this, dialog);
|
||||
}
|
||||
});
|
||||
return dialog;
|
||||
return builder.create();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public class ImportActivity extends FragmentActivity implements FileTypeDialogFr
|
||||
message = getString(
|
||||
R.string.import_error, importedTrackCount, totalFiles, directoryDisplayName);
|
||||
}
|
||||
final Dialog dialog = new AlertDialog.Builder(this).setCancelable(true).setIcon(iconId)
|
||||
return new AlertDialog.Builder(this).setCancelable(true).setIcon(iconId)
|
||||
.setMessage(message).setOnCancelListener(new DialogInterface.OnCancelListener() {
|
||||
@Override
|
||||
public void onCancel(DialogInterface dialogInterface) {
|
||||
@@ -173,14 +173,6 @@ public class ImportActivity extends FragmentActivity implements FileTypeDialogFr
|
||||
onDismissed();
|
||||
}
|
||||
}).setTitle(titleId).create();
|
||||
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
|
||||
|
||||
@Override
|
||||
public void onShow(DialogInterface dialogInterface) {
|
||||
DialogUtils.setDialogTitleDivider(ImportActivity.this, dialog);
|
||||
}
|
||||
});
|
||||
return dialog;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user