diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt index 21e553ea..bc13a387 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt @@ -1302,7 +1302,7 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio currentPoster = d.posterUrl currentIsMovie = !d.isEpisodeBased() - result_openinbrower?.setOnClickListener { + result_open_in_browser?.setOnClickListener { val i = Intent(ACTION_VIEW) i.data = Uri.parse(d.url) try { @@ -1649,6 +1649,16 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio } } + result_open_in_browser?.setOnClickListener { + val i = Intent(ACTION_VIEW) + i.data = Uri.parse(tempUrl) + try { + startActivity(i) + } catch (e: Exception) { + logError(e) + } + } + result_meta_site?.setOnClickListener { it.context?.openBrowser(tempUrl) } diff --git a/app/src/main/res/layout/fragment_result_swipe.xml b/app/src/main/res/layout/fragment_result_swipe.xml index 448e0d7b..639d5b37 100644 --- a/app/src/main/res/layout/fragment_result_swipe.xml +++ b/app/src/main/res/layout/fragment_result_swipe.xml @@ -49,7 +49,7 @@ android:nextFocusUp="@id/result_back" android:nextFocusDown="@id/result_descript" android:nextFocusLeft="@id/result_add_sync" - android:nextFocusRight="@id/result_openinbrower" + android:nextFocusRight="@id/result_open_in_browser" android:id="@+id/result_share" android:layout_width="25dp" @@ -69,7 +69,7 @@ android:nextFocusLeft="@id/result_share" android:nextFocusRight="@id/result_search" - android:id="@+id/result_openinbrower" + android:id="@+id/result_open_in_browser" android:layout_width="25dp" android:layout_height="25dp" android:layout_margin="5dp" @@ -84,7 +84,7 @@