From 6b26de862dbc110675f4e403082d6d5b71ea60a2 Mon Sep 17 00:00:00 2001 From: dhk2 Date: Sun, 28 Jun 2020 07:41:48 -0700 Subject: [PATCH] fixing duplicate controlelrs --- .../java/net/schueller/peertube/activity/VideoPlayActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java b/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java index 49a23eb..4fb14bc 100644 --- a/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java +++ b/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java @@ -287,7 +287,7 @@ public class VideoPlayActivity extends AppCompatActivity { public void onBackPressed() { SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this); - VideoPlayerFragment videoPlayerFragment = (VideoPlayerFragment) + videoPlayerFragment = (VideoPlayerFragment) getSupportFragmentManager().findFragmentById(R.id.video_player_fragment); //copying Youtube behavior to have back button exit full screen.