support youtube's custom URL schemes (vnd.youtube: and vnd.youtube.launch:)

This commit is contained in:
Hans-Christoph Steiner 2016-01-01 23:51:34 +01:00
parent 2a93e9bd2e
commit efe5de4c75
1 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,15 @@
<data android:host="youtu.be" /> <data android:host="youtu.be" />
<data android:pathPrefix="/" /> <data android:pathPrefix="/" />
</intent-filter> </intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="vnd.youtube" />
<data android:scheme="vnd.youtube.launch" />
</intent-filter>
</activity> </activity>
<activity android:name=".PlayVideoActivity" <activity android:name=".PlayVideoActivity"
android:configChanges="orientation|keyboardHidden|screenSize" android:configChanges="orientation|keyboardHidden|screenSize"