mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-04 07:18:21 +03:00
This adds an Application subclass to get the onCreate() method, which is called once at the first start up of the app, before any Activity starts. Tor is configured there to ensure it is setup before anything happens. This also moves the "Use Tor" pref listener to a more appropriate place.
103 lines
4.6 KiB
XML
103 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
package="org.schabi.newpipe" >
|
|
<uses-permission android:name= "android.permission.INTERNET" />
|
|
<uses-permission android:name= "android.permission.WAKE_LOCK" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
<application
|
|
android:name=".App"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:logo="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/AppTheme"
|
|
tools:ignore="AllowBackup">
|
|
<activity
|
|
android:name=".VideoItemListActivity"
|
|
android:label="@string/app_name">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name=".VideoItemDetailActivity"
|
|
android:label="@string/title_videoitem_detail"
|
|
android:theme="@style/AppTheme">
|
|
<meta-data
|
|
android:name="android.support.PARENT_ACTIVITY"
|
|
android:value=".VideoItemListActivity" />
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
|
|
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
|
|
<data android:scheme="http" />
|
|
<data android:scheme="https" />
|
|
<data android:host="youtube.com" />
|
|
<data android:host="m.youtube.com" />
|
|
<data android:host="www.youtube.com" />
|
|
<data android:pathPrefix="/v/" />
|
|
<data android:pathPrefix="/watch" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
|
|
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
|
|
<data android:scheme="http" />
|
|
<data android:scheme="https" />
|
|
<data android:host="youtu.be" />
|
|
<data android:pathPrefix="/" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
|
|
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
|
|
|
|
<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 android:name=".PlayVideoActivity"
|
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
|
android:theme="@style/VideoPlayerTheme"
|
|
android:parentActivityName=".VideoItemDetailActivity"
|
|
tools:ignore="UnusedAttribute">
|
|
</activity>
|
|
<service
|
|
android:name=".BackgroundPlayer"
|
|
android:label="@string/background_player_name"
|
|
android:exported="false" />
|
|
<activity
|
|
android:name=".SettingsActivity"
|
|
android:label="@string/title_activity_settings" >
|
|
</activity>
|
|
<activity
|
|
android:name=".PanicResponderActivity"
|
|
android:launchMode="singleInstance"
|
|
android:noHistory="true"
|
|
android:theme="@android:style/Theme.NoDisplay">
|
|
<intent-filter>
|
|
<action android:name="info.guardianproject.panic.action.TRIGGER" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name=".ExitActivity"
|
|
android:theme="@android:style/Theme.NoDisplay" />
|
|
</application>
|
|
</manifest>
|