mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
open in browser while loading
This commit is contained in:
parent
b2d025e5e9
commit
fb8874621a
2 changed files with 14 additions and 4 deletions
|
@ -1302,7 +1302,7 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio
|
||||||
currentPoster = d.posterUrl
|
currentPoster = d.posterUrl
|
||||||
currentIsMovie = !d.isEpisodeBased()
|
currentIsMovie = !d.isEpisodeBased()
|
||||||
|
|
||||||
result_openinbrower?.setOnClickListener {
|
result_open_in_browser?.setOnClickListener {
|
||||||
val i = Intent(ACTION_VIEW)
|
val i = Intent(ACTION_VIEW)
|
||||||
i.data = Uri.parse(d.url)
|
i.data = Uri.parse(d.url)
|
||||||
try {
|
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 {
|
result_meta_site?.setOnClickListener {
|
||||||
it.context?.openBrowser(tempUrl)
|
it.context?.openBrowser(tempUrl)
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
android:nextFocusUp="@id/result_back"
|
android:nextFocusUp="@id/result_back"
|
||||||
android:nextFocusDown="@id/result_descript"
|
android:nextFocusDown="@id/result_descript"
|
||||||
android:nextFocusLeft="@id/result_add_sync"
|
android:nextFocusLeft="@id/result_add_sync"
|
||||||
android:nextFocusRight="@id/result_openinbrower"
|
android:nextFocusRight="@id/result_open_in_browser"
|
||||||
|
|
||||||
android:id="@+id/result_share"
|
android:id="@+id/result_share"
|
||||||
android:layout_width="25dp"
|
android:layout_width="25dp"
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
android:nextFocusLeft="@id/result_share"
|
android:nextFocusLeft="@id/result_share"
|
||||||
android:nextFocusRight="@id/result_search"
|
android:nextFocusRight="@id/result_search"
|
||||||
|
|
||||||
android:id="@+id/result_openinbrower"
|
android:id="@+id/result_open_in_browser"
|
||||||
android:layout_width="25dp"
|
android:layout_width="25dp"
|
||||||
android:layout_height="25dp"
|
android:layout_height="25dp"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:nextFocusUp="@id/result_back"
|
android:nextFocusUp="@id/result_back"
|
||||||
android:nextFocusDown="@id/result_descript"
|
android:nextFocusDown="@id/result_descript"
|
||||||
android:nextFocusLeft="@id/result_openinbrower"
|
android:nextFocusLeft="@id/result_open_in_browser"
|
||||||
android:nextFocusRight="@id/result_recommendations_btt"
|
android:nextFocusRight="@id/result_recommendations_btt"
|
||||||
|
|
||||||
android:id="@+id/result_search"
|
android:id="@+id/result_search"
|
||||||
|
|
Loading…
Reference in a new issue