1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-05-16 06:14:05 +00:00

Show download date

This commit is contained in:
malania02 2025-03-22 16:19:26 +01:00 committed by GitHub
parent 536b78f2e6
commit 63be3220e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,6 +71,9 @@ import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Date;
import java.util.Locale;
import java.text.DateFormat;
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers;
import io.reactivex.rxjava3.core.Observable;
@ -213,6 +216,10 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
h.status.setText("100%");
h.progress.setProgress(1.0f);
h.size.setText(Utility.formatBytes(item.mission.length));
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());
Date date = new Date(item.mission.timestamp);
h.date.setText(dateFormat.format(date));
}
}