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