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
1 changed files with 2 additions and 1 deletions

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: