Some fixes
This commit is contained in:
parent
acba219e44
commit
dbd068d95f
|
@ -491,6 +491,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
if (b != null) {
|
if (b != null) {
|
||||||
peertubeInstance = b.getString("peertube_instance", Helper.getLiveInstance(PeertubeActivity.this));
|
peertubeInstance = b.getString("peertube_instance", Helper.getLiveInstance(PeertubeActivity.this));
|
||||||
videoUuid = b.getString("video_uuid", null);
|
videoUuid = b.getString("video_uuid", null);
|
||||||
|
setRequestedOrientation(initialOrientation);
|
||||||
if (comments != null && comments.size() > 0) {
|
if (comments != null && comments.size() > 0) {
|
||||||
int number = comments.size();
|
int number = comments.size();
|
||||||
comments.clear();
|
comments.clear();
|
||||||
|
@ -569,6 +570,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
show_more_content = null;
|
show_more_content = null;
|
||||||
currentCaption = "null";
|
currentCaption = "null";
|
||||||
binding.peertubeDescriptionMore.setVisibility(View.GONE);
|
binding.peertubeDescriptionMore.setVisibility(View.GONE);
|
||||||
|
|
||||||
if (autoFullscreen && autoPlay) {
|
if (autoFullscreen && autoPlay) {
|
||||||
openFullscreenDialog();
|
openFullscreenDialog();
|
||||||
}
|
}
|
||||||
|
@ -994,7 +996,6 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
@Override
|
@Override
|
||||||
public void onConfigurationChanged(@NotNull Configuration newConfig) {
|
public void onConfigurationChanged(@NotNull Configuration newConfig) {
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
|
|
||||||
if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||||
if (mode != Helper.VIDEO_MODE_WEBVIEW) {
|
if (mode != Helper.VIDEO_MODE_WEBVIEW) {
|
||||||
openFullscreenDialog();
|
openFullscreenDialog();
|
||||||
|
|
Loading…
Reference in New Issue