Some fixes

This commit is contained in:
Thomas 2020-10-16 17:41:07 +02:00
parent 34f058358e
commit 8b66c4030f
1 changed files with 2 additions and 2 deletions

View File

@ -860,9 +860,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
@Override
public void onReceive(Context context, Intent intent) {
String strAction = intent.getAction();
if (strAction.equals(Intent.ACTION_SCREEN_OFF) || strAction.equals(Intent.ACTION_SCREEN_ON)) {
if (strAction.equals(Intent.ACTION_SCREEN_OFF)) {
if (player != null && isPlayInMinimized) {
player.setPlayWhenReady(!strAction.equals(Intent.ACTION_SCREEN_OFF));
player.setPlayWhenReady(false);
}
}
}