Add YouTube QSB Provider (#3570)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="72"
|
||||
android:viewportHeight="72">
|
||||
<path
|
||||
android:fillColor="#FF0002"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M36,72L36,72C55.882,72 72,55.882 72,36L72,36C72,16.118 55.882,-0 36,0L36,0C16.118,0 -0,16.118 0,36L0,36C0,55.882 16.118,72 36,72Z" />
|
||||
<path
|
||||
android:fillColor="#FFF"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M31.044,42.27L31.042,28.688L44.012,35.502L31.044,42.27ZM59.52,26.334C59.52,26.334 59.05,23.003 57.612,21.536C55.786,19.61 53.741,19.601 52.803,19.489C46.086,19 36.011,19 36.011,19L35.989,19C35.989,19 25.914,19 19.197,19.489C18.258,19.601 16.213,19.61 14.387,21.536C12.948,23.003 12.48,26.334 12.48,26.334C12.48,26.334 12,30.247 12,34.158L12,37.826C12,41.738 12.48,45.649 12.48,45.649C12.48,45.649 12.948,48.98 14.387,50.447C16.213,52.373 18.612,52.313 19.68,52.514C23.52,52.885 36,53 36,53C36,53 46.086,52.985 52.803,52.495C53.741,52.382 55.786,52.373 57.612,50.447C59.05,48.98 59.52,45.649 59.52,45.649C59.52,45.649 60,41.738 60,37.826L60,34.158C60,30.247 59.52,26.334 59.52,26.334L59.52,26.334Z" />
|
||||
</vector>
|
||||
@@ -308,6 +308,7 @@
|
||||
<string name="search_provider_sesame" translatable="false">Sesame</string>
|
||||
<string name="search_provider_brave" translatable="false">Brave</string>
|
||||
<string name="search_provider_github" translatable="false">GitHub</string>
|
||||
<string name="search_provider_youtube" translatable="false">YouTube</string>
|
||||
<string name="search_provider_pixel_search" translatable="false">Pixel Search</string>
|
||||
<string name="app_label">App</string>
|
||||
<string name="website_label">Website</string>
|
||||
|
||||
@@ -119,6 +119,7 @@ sealed class QsbSearchProvider(
|
||||
AppSearch,
|
||||
Google,
|
||||
GoogleGo,
|
||||
Youtube,
|
||||
PixelSearch,
|
||||
Sesame,
|
||||
Wikipedia,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package app.lawnchair.qsb.providers
|
||||
|
||||
import android.content.Intent
|
||||
import app.lawnchair.qsb.ThemingMethod
|
||||
import com.android.launcher3.R
|
||||
|
||||
object Youtube : QsbSearchProvider(
|
||||
id = "youtube",
|
||||
name = R.string.search_provider_youtube,
|
||||
icon = R.drawable.ic_youtube,
|
||||
themingMethod = ThemingMethod.THEME_BY_LAYER_ID,
|
||||
packageName = "com.google.android.youtube",
|
||||
action = Intent.ACTION_SEARCH,
|
||||
supportVoiceIntent = false,
|
||||
website = "https://youtube.com/"
|
||||
)
|
||||
Reference in New Issue
Block a user