Merge pull request #6161 from TeamNewPipe/player-buffering

Fix invisible buffering / loading indicator in player
This commit is contained in:
Tobi 2021-04-25 18:10:02 +02:00 committed by GitHub
commit 0a2ed805a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2077,6 +2077,7 @@ public final class Player implements
Log.d(TAG, "onBuffering() called"); Log.d(TAG, "onBuffering() called");
} }
binding.loadingPanel.setBackgroundColor(Color.TRANSPARENT); binding.loadingPanel.setBackgroundColor(Color.TRANSPARENT);
binding.loadingPanel.setVisibility(View.VISIBLE);
binding.getRoot().setKeepScreenOn(true); binding.getRoot().setKeepScreenOn(true);