open youtube links in app

This commit is contained in:
rimthekid 2022-03-15 00:39:50 -04:00
parent f3d3ebc5ae
commit ab1576bb2b

View File

@ -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()