release 1.1.0-a
This commit is contained in:
parent
eef6b3d76c
commit
3c2b8cc699
|
@ -734,7 +734,7 @@ public class PeertubeActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void enterVideoMode() {
|
private void enterVideoMode() {
|
||||||
if (playInMinimized && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && player != null && player.isPlaying()) {
|
if (playInMinimized && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && player != null) {
|
||||||
MediaSessionCompat mediaSession = new MediaSessionCompat(this, getPackageName());
|
MediaSessionCompat mediaSession = new MediaSessionCompat(this, getPackageName());
|
||||||
MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession);
|
MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession);
|
||||||
mediaSessionConnector.setPlayer(player);
|
mediaSessionConnector.setPlayer(player);
|
||||||
|
@ -747,7 +747,7 @@ public class PeertubeActivity extends AppCompatActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
if (playInMinimized && player != null && player.isPlaying()) {
|
if (playInMinimized && player != null) {
|
||||||
enterVideoMode();
|
enterVideoMode();
|
||||||
} else {
|
} else {
|
||||||
super.onBackPressed();
|
super.onBackPressed();
|
||||||
|
|
Loading…
Reference in New Issue