Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhiraj40 committed Dec 9, 2021
1 parent 2accd20 commit 435edc6
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.envirocar.app.interactor.UploadAllTracks;
import org.envirocar.app.interactor.UploadTrack;
import org.envirocar.app.views.trackdetails.TrackDetailsActivity;
import org.envirocar.app.views.utils.DialogUtils;
import org.envirocar.app.views.utils.ECAnimationUtils;
import org.envirocar.core.entity.Track;
import org.envirocar.core.events.TrackFinishedEvent;
Expand Down Expand Up @@ -364,11 +365,11 @@ public UploadTrackDialogObserver(Track track) {
protected void onStart() {
super.onStart();
// Create the dialog to show.
this.dialog = new MaterialAlertDialogBuilder(requireActivity(), R.style.MaterialDialog)
.setTitle(R.string.track_list_upload_track_uploading)
.setIcon(R.drawable.ic_cloud_upload_white_24dp)
.setView(contentView)
.setNegativeButton(R.string.cancel,(materialDialog, dialogAction) -> {
this.dialog = DialogUtils.createProgressBarDialogBuilder(getContext(),
R.string.track_list_upload_track_uploading,
R.drawable.ic_cloud_upload_white_24dp,
getString(R.string.track_list_upload_track_content)+"\n" +track.getName())
.setNegativeButton(R.string.cancel,(dialog, which) -> {
dispose();
})
.show();
Expand Down

0 comments on commit 435edc6

Please sign in to comment.