1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-02-08 07:48:53 +01:00
This commit is contained in:
tzugen 2021-04-21 18:42:59 +02:00
parent d41bd8bc07
commit 6c681ddb52
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930

View File

@ -1375,7 +1375,8 @@ public class PlayerFragment extends Fragment implements GestureDetector.OnGestur
switch (playerState)
{
case DOWNLOADING:
String downloadStatus = getResources().getString(R.string.download_playerstate_downloading, Util.formatPercentage(currentPlaying.getProgress().getValue()));
int progress = currentPlaying != null ? currentPlaying.getProgress().getValue() : 0;
String downloadStatus = getResources().getString(R.string.download_playerstate_downloading, Util.formatPercentage(progress));
FragmentTitle.Companion.setTitle(PlayerFragment.this, downloadStatus);
break;
case PREPARING: