TacoTheDank
5 years ago
342 changed files with 36967 additions and 36514 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
# editorconfig.org |
||||
root = true |
||||
|
||||
[*] |
||||
charset = utf-8 |
||||
end_of_line = lf |
||||
indent_style = space |
||||
insert_final_newline = true |
||||
trim_trailing_whitespace = true |
@ -1,333 +1,330 @@
@@ -1,333 +1,330 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<!-- |
||||
<?xml version="1.0" encoding="utf-8"?><!-- |
||||
Copyright 2010-2018 Eric Kok et al. |
||||
|
||||
|
||||
Transdroid is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
|
||||
Transdroid is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with Transdroid. If not, see <http://www.gnu.org/licenses/>. |
||||
--> |
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
package="org.transdroid" > |
||||
|
||||
<uses-sdk /> |
||||
|
||||
<supports-screens |
||||
android:anyDensity="true" |
||||
android:largeScreens="true" |
||||
android:normalScreens="true" |
||||
android:smallScreens="true" |
||||
android:xlargeScreens="true" /> |
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" /> |
||||
<!-- To check for an active connection --> |
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||
<!-- To check currently connected wifi network name --> |
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
||||
<uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||
<!-- To start rss and torrents background check services --> |
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
||||
<uses-permission android:name="android.permission.VIBRATE" /> |
||||
<!-- To export settings file to external storage --> |
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
||||
|
||||
<uses-feature |
||||
android:name="android.hardware.touchscreen" |
||||
android:required="false" /> |
||||
|
||||
<uses-feature |
||||
android:name="android.software.leanback" |
||||
android:required="false" /> |
||||
|
||||
<application |
||||
android:name=".core.gui.TransdroidApp_" |
||||
android:allowBackup="true" |
||||
android:hardwareAccelerated="true" |
||||
android:icon="@drawable/ic_launcher" |
||||
android:banner="@drawable/banner" |
||||
android:label="@string/app_name" |
||||
android:theme="@style/Theme.AppCompat" |
||||
android:usesCleartextTraffic="true"> |
||||
|
||||
<uses-library |
||||
android:name="org.apache.http.legacy" |
||||
android:required="false" /> |
||||
|
||||
<!-- Main activities --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.TorrentsActivity_" |
||||
android:allowTaskReparenting="true" |
||||
android:label="@string/app_name" |
||||
android:launchMode="singleTop" |
||||
android:theme="@style/TransdroidTheme" |
||||
android:windowSoftInputMode="stateHidden" > |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.MAIN" /> |
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" /> |
||||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.SEARCH" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="org.transdroid.ADD_MULTIPLE" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="org.transdroid.START_SERVER" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="http" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="http" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="https" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="https" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="file" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="file" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="content" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="content" /> |
||||
</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="magnet" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.app.default_searchable" |
||||
android:value="org.transdroid.core.gui.search.SearchActivity_" /> |
||||
</activity> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.DetailsActivity_" |
||||
android:theme="@style/TransdroidTheme" |
||||
android:uiOptions="splitActionBarWhenNarrow" > |
||||
</activity> |
||||
|
||||
<!-- Settings screens --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.MainSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.ServerSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.WebsearchSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.RssfeedSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.NotificationSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.SystemSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.HelpSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.navigation.DialogHelper_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
|
||||
<!-- Seedbox settings --> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.DediseedboxSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.SeedstuffSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.XirvikSharedSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.XirvikSemiSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.XirvikDediSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
|
||||
<!-- Search --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.search.SearchActivity_" |
||||
android:icon="@drawable/ic_launcher" |
||||
android:label="@string/search_torrentsearch" |
||||
android:launchMode="singleTask" |
||||
android:theme="@style/TransdroidTheme" > |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.SEARCH" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.SEND" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
|
||||
<data android:mimeType="text/plain" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.app.searchable" |
||||
android:resource="@xml/searchable" /> |
||||
<meta-data |
||||
android:name="android.app.default_searchable" |
||||
android:value="org.transdroid.core.gui.search.SearchActivity_" /> |
||||
</activity> |
||||
|
||||
<provider |
||||
android:name="org.transdroid.core.gui.search.SearchHistoryProvider" |
||||
android:authorities="@string/search_history_authority" |
||||
android:exported="false" /> |
||||
|
||||
<!-- RSS --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.rss.RssFeedsActivity_" |
||||
android:label="@string/rss_feeds" |
||||
android:launchMode="singleTop" |
||||
android:theme="@style/TransdroidTheme" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.rss.RssItemsActivity_" |
||||
android:label="@string/rss_feeds" |
||||
android:theme="@style/TransdroidTheme" /> |
||||
|
||||
<receiver android:name="org.transdroid.core.service.BootReceiver_" > |
||||
<intent-filter> |
||||
<action |
||||
android:name="android.intent.action.BOOT_COMPLETED" |
||||
android:value="android.intent.action.BOOT_COMPLETED" /> |
||||
</intent-filter> |
||||
</receiver> |
||||
|
||||
<service |
||||
android:name="org.transdroid.core.service.ControlService_" |
||||
android:exported="true" |
||||
tools:ignore="ExportedService" > |
||||
<intent-filter> |
||||
<action android:name="org.transdroid.control.SET_TRANSFER_RATES" /> |
||||
<action android:name="org.transdroid.control.PAUSE_ALL" /> |
||||
<action android:name="org.transdroid.control.RESUME_ALL" /> |
||||
<action android:name="org.transdroid.control.START_ALL" /> |
||||
<action android:name="org.transdroid.control.STOP_ALL" /> |
||||
</intent-filter> |
||||
</service> |
||||
|
||||
<!-- Home screen widget --> |
||||
<activity |
||||
android:name="org.transdroid.core.widget.ListWidgetConfigActivity_" |
||||
android:theme="@style/TransdroidTheme.WidgetConfig" > |
||||
<intent-filter> |
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> |
||||
</intent-filter> |
||||
</activity> |
||||
|
||||
<service |
||||
android:name="org.transdroid.core.widget.ListWidgetViewsService_" |
||||
android:exported="false" |
||||
android:permission="android.permission.BIND_REMOTEVIEWS" /> |
||||
|
||||
<receiver |
||||
android:name="org.transdroid.core.widget.ListWidgetProvider_"> |
||||
<intent-filter> |
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.appwidget.provider" |
||||
android:resource="@xml/listwidget_info" /> |
||||
</receiver> |
||||
</application> |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
package="org.transdroid"> |
||||
|
||||
<uses-sdk /> |
||||
|
||||
<supports-screens |
||||
android:anyDensity="true" |
||||
android:largeScreens="true" |
||||
android:normalScreens="true" |
||||
android:smallScreens="true" |
||||
android:xlargeScreens="true" /> |
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" /> |
||||
<!-- To check for an active connection --> |
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||
<!-- To check currently connected wifi network name --> |
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
||||
<uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||
<!-- To start rss and torrents background check services --> |
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
||||
<uses-permission android:name="android.permission.VIBRATE" /> |
||||
<!-- To export settings file to external storage --> |
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
||||
|
||||
<uses-feature |
||||
android:name="android.hardware.touchscreen" |
||||
android:required="false" /> |
||||
|
||||
<uses-feature |
||||
android:name="android.software.leanback" |
||||
android:required="false" /> |
||||
|
||||
<application |
||||
android:name=".core.gui.TransdroidApp_" |
||||
android:allowBackup="true" |
||||
android:hardwareAccelerated="true" |
||||
android:icon="@drawable/ic_launcher" |
||||
android:banner="@drawable/banner" |
||||
android:label="@string/app_name" |
||||
android:theme="@style/Theme.AppCompat" |
||||
android:usesCleartextTraffic="true"> |
||||
|
||||
<uses-library |
||||
android:name="org.apache.http.legacy" |
||||
android:required="false" /> |
||||
|
||||
<!-- Main activities --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.TorrentsActivity_" |
||||
android:allowTaskReparenting="true" |
||||
android:label="@string/app_name" |
||||
android:launchMode="singleTop" |
||||
android:theme="@style/TransdroidTheme" |
||||
android:windowSoftInputMode="stateHidden"> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.MAIN" /> |
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" /> |
||||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.SEARCH" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="org.transdroid.ADD_MULTIPLE" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="org.transdroid.START_SERVER" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="http" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="http" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="https" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="https" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="file" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="file" /> |
||||
</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:host="*" |
||||
android:mimeType="application/x-bittorrent" |
||||
android:scheme="content" /> |
||||
</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:host="*" |
||||
android:pathPattern=".*\\.torrent" |
||||
android:scheme="content" /> |
||||
</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="magnet" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.app.default_searchable" |
||||
android:value="org.transdroid.core.gui.search.SearchActivity_" /> |
||||
</activity> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.DetailsActivity_" |
||||
android:theme="@style/TransdroidTheme" |
||||
android:uiOptions="splitActionBarWhenNarrow"></activity> |
||||
|
||||
<!-- Settings screens --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.MainSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.ServerSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.WebsearchSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.RssfeedSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.NotificationSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.SystemSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.settings.HelpSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.navigation.DialogHelper_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
|
||||
<!-- Seedbox settings --> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.DediseedboxSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.SeedstuffSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.XirvikSharedSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.XirvikSemiSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
<activity |
||||
android:name="org.transdroid.core.seedbox.XirvikDediSettingsActivity_" |
||||
android:theme="@style/TransdroidTheme.Settings" /> |
||||
|
||||
<!-- Search --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.search.SearchActivity_" |
||||
android:icon="@drawable/ic_launcher" |
||||
android:label="@string/search_torrentsearch" |
||||
android:launchMode="singleTask" |
||||
android:theme="@style/TransdroidTheme"> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.SEARCH" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
</intent-filter> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.SEND" /> |
||||
|
||||
<category android:name="android.intent.category.DEFAULT" /> |
||||
|
||||
<data android:mimeType="text/plain" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.app.searchable" |
||||
android:resource="@xml/searchable" /> |
||||
<meta-data |
||||
android:name="android.app.default_searchable" |
||||
android:value="org.transdroid.core.gui.search.SearchActivity_" /> |
||||
</activity> |
||||
|
||||
<provider |
||||
android:name="org.transdroid.core.gui.search.SearchHistoryProvider" |
||||
android:authorities="@string/search_history_authority" |
||||
android:exported="false" /> |
||||
|
||||
<!-- RSS --> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.rss.RssFeedsActivity_" |
||||
android:label="@string/rss_feeds" |
||||
android:launchMode="singleTop" |
||||
android:theme="@style/TransdroidTheme" /> |
||||
<activity |
||||
android:name="org.transdroid.core.gui.rss.RssItemsActivity_" |
||||
android:label="@string/rss_feeds" |
||||
android:theme="@style/TransdroidTheme" /> |
||||
|
||||
<receiver android:name="org.transdroid.core.service.BootReceiver_"> |
||||
<intent-filter> |
||||
<action |
||||
android:name="android.intent.action.BOOT_COMPLETED" |
||||
android:value="android.intent.action.BOOT_COMPLETED" /> |
||||
</intent-filter> |
||||
</receiver> |
||||
|
||||
<service |
||||
android:name="org.transdroid.core.service.ControlService_" |
||||
android:exported="true" |
||||
tools:ignore="ExportedService"> |
||||
<intent-filter> |
||||
<action android:name="org.transdroid.control.SET_TRANSFER_RATES" /> |
||||
<action android:name="org.transdroid.control.PAUSE_ALL" /> |
||||
<action android:name="org.transdroid.control.RESUME_ALL" /> |
||||
<action android:name="org.transdroid.control.START_ALL" /> |
||||
<action android:name="org.transdroid.control.STOP_ALL" /> |
||||
</intent-filter> |
||||
</service> |
||||
|
||||
<!-- Home screen widget --> |
||||
<activity |
||||
android:name="org.transdroid.core.widget.ListWidgetConfigActivity_" |
||||
android:theme="@style/TransdroidTheme.WidgetConfig"> |
||||
<intent-filter> |
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> |
||||
</intent-filter> |
||||
</activity> |
||||
|
||||
<service |
||||
android:name="org.transdroid.core.widget.ListWidgetViewsService_" |
||||
android:exported="false" |
||||
android:permission="android.permission.BIND_REMOTEVIEWS" /> |
||||
|
||||
<receiver android:name="org.transdroid.core.widget.ListWidgetProvider_"> |
||||
<intent-filter> |
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.appwidget.provider" |
||||
android:resource="@xml/listwidget_info" /> |
||||
</receiver> |
||||
</application> |
||||
|
||||
</manifest> |
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,78 +1,81 @@
@@ -1,78 +1,81 @@
|
||||
/* |
||||
/* |
||||
* Copyright 2010-2018 Eric Kok et al. |
||||
* |
||||
* |
||||
* Transdroid is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* |
||||
* Transdroid is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
package org.transdroid.core.gui.lists; |
||||
|
||||
import android.content.Context; |
||||
|
||||
import org.transdroid.R; |
||||
import org.transdroid.daemon.TorrentsSortBy; |
||||
|
||||
/** |
||||
* Represents a way in which a torrents list can be sorted. |
||||
* |
||||
* @author Eric Kok |
||||
*/ |
||||
public class SortByListItem implements SimpleListItem { |
||||
|
||||
private final TorrentsSortBy sortBy; |
||||
private final String name; |
||||
private final TorrentsSortBy sortBy; |
||||
private final String name; |
||||
|
||||
public SortByListItem(Context context, TorrentsSortBy sortBy) { |
||||
this.sortBy = sortBy; |
||||
switch (sortBy) { |
||||
case DateAdded: |
||||
this.name = context.getString(R.string.action_sort_added); |
||||
break; |
||||
case DateDone: |
||||
this.name = context.getString(R.string.action_sort_done); |
||||
break; |
||||
case Ratio: |
||||
this.name = context.getString(R.string.action_sort_ratio); |
||||
break; |
||||
case Status: |
||||
this.name = context.getString(R.string.action_sort_status); |
||||
break; |
||||
case UploadSpeed: |
||||
this.name = context.getString(R.string.action_sort_upspeed); |
||||
break; |
||||
case DownloadSpeed: |
||||
this.name = context.getString(R.string.action_sort_downspeed); |
||||
break; |
||||
case Percent: |
||||
this.name = context.getString(R.string.action_sort_percent); |
||||
break; |
||||
case Size: |
||||
this.name = context.getString(R.string.action_sort_size); |
||||
break; |
||||
default: |
||||
this.name = context.getString(R.string.action_sort_alpha); |
||||
break; |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Returns the contained represented sort order. |
||||
* |
||||
* @return The sort by order as its enumeration value |
||||
*/ |
||||
public TorrentsSortBy getSortBy() { |
||||
return sortBy; |
||||
} |
||||
|
||||
public SortByListItem(Context context, TorrentsSortBy sortBy) { |
||||
this.sortBy = sortBy; |
||||
switch (sortBy) { |
||||
case DateAdded: |
||||
this.name = context.getString(R.string.action_sort_added); |
||||
break; |
||||
case DateDone: |
||||
this.name = context.getString(R.string.action_sort_done); |
||||
break; |
||||
case Ratio: |
||||
this.name = context.getString(R.string.action_sort_ratio); |
||||
break; |
||||
case Status: |
||||
this.name = context.getString(R.string.action_sort_status); |
||||
break; |
||||
case UploadSpeed: |
||||
this.name = context.getString(R.string.action_sort_upspeed); |
||||
break; |
||||
case DownloadSpeed: |
||||
this.name = context.getString(R.string.action_sort_downspeed); |
||||
break; |
||||
case Percent: |
||||
this.name = context.getString(R.string.action_sort_percent); |
||||
break; |
||||
case Size: |
||||
this.name = context.getString(R.string.action_sort_size); |
||||
break; |
||||
default: |
||||
this.name = context.getString(R.string.action_sort_alpha); |
||||
break; |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Returns the contained represented sort order. |
||||
* @return The sort by order as its enumeration value |
||||
*/ |
||||
public TorrentsSortBy getSortBy() { |
||||
return sortBy; |
||||
} |
||||
|
||||
@Override |
||||
public String getName() { |
||||
return name; |
||||
} |
||||
@Override |
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
} |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue