mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-19 10:37:42 +03:00
Show download percentage also in the title
This commit is contained in:
parent
4787924fcc
commit
467df602ec
@ -1375,8 +1375,7 @@ public class PlayerFragment extends Fragment implements GestureDetector.OnGestur
|
||||
switch (playerState)
|
||||
{
|
||||
case DOWNLOADING:
|
||||
final long bytes = currentPlaying != null ? currentPlaying.getPartialFile().length() : 0;
|
||||
String downloadStatus = getResources().getString(R.string.download_playerstate_downloading, Util.formatLocalizedBytes(bytes, getContext()));
|
||||
String downloadStatus = getResources().getString(R.string.download_playerstate_downloading, Util.formatPercentage(currentPlaying.getProgress().getValue()));
|
||||
FragmentTitle.Companion.setTitle(PlayerFragment.this, downloadStatus);
|
||||
break;
|
||||
case PREPARING:
|
||||
|
Loading…
x
Reference in New Issue
Block a user