diff --git a/app/src/main/java/com/github/libretube/MainActivity.kt b/app/src/main/java/com/github/libretube/MainActivity.kt index e16bfe285..eb16481bf 100644 --- a/app/src/main/java/com/github/libretube/MainActivity.kt +++ b/app/src/main/java/com/github/libretube/MainActivity.kt @@ -166,6 +166,9 @@ class MainActivity : AppCompatActivity() { bundle.putString("videoId",watch.replace("v=","")) var frag = PlayerFragment() frag.arguments = bundle + supportFragmentManager.beginTransaction() + .remove(PlayerFragment()) + .commit() supportFragmentManager.beginTransaction() .replace(R.id.container, frag) .commitNow()