Open m.youtube links (#50)
This commit is contained in:
@@ -42,6 +42,10 @@
|
|||||||
android:host="www.youtube.com"
|
android:host="www.youtube.com"
|
||||||
android:pathPrefix="/playlist"
|
android:pathPrefix="/playlist"
|
||||||
android:scheme="https" />
|
android:scheme="https" />
|
||||||
|
<data
|
||||||
|
android:host="m.youtube.com"
|
||||||
|
android:pathPrefix="/playlist"
|
||||||
|
android:scheme="https" />
|
||||||
<data
|
<data
|
||||||
android:host="music.youtube.com"
|
android:host="music.youtube.com"
|
||||||
android:pathPrefix="/watch"
|
android:pathPrefix="/watch"
|
||||||
@@ -50,6 +54,10 @@
|
|||||||
android:host="www.youtube.com"
|
android:host="www.youtube.com"
|
||||||
android:pathPrefix="/watch"
|
android:pathPrefix="/watch"
|
||||||
android:scheme="https" />
|
android:scheme="https" />
|
||||||
|
<data
|
||||||
|
android:host="m.youtube.com"
|
||||||
|
android:pathPrefix="/watch"
|
||||||
|
android:scheme="https" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ fun SearchScreen(
|
|||||||
val coroutineScope = rememberCoroutineScope()
|
val coroutineScope = rememberCoroutineScope()
|
||||||
|
|
||||||
val isOpenableUrl = remember(textFieldValue.text) {
|
val isOpenableUrl = remember(textFieldValue.text) {
|
||||||
Regex("""https://(music|www)\.youtube.com/(watch|playlist).*""").matches(textFieldValue.text)
|
Regex("""https://(music|www|m)\.youtube.com/(watch|playlist).*""").matches(textFieldValue.text)
|
||||||
}
|
}
|
||||||
|
|
||||||
LaunchedEffect(Unit) {
|
LaunchedEffect(Unit) {
|
||||||
|
|||||||
Reference in New Issue
Block a user