main commit
Post-processing infrastructure * remove interfaces with one implementation * fix download resources with unknow length * marquee style for ProgressDrawable * "view details" option in mission context menu * notification for finished downloads * postprocessing infrastructure: sub-missions, circular file, layers for layers of abstractions for Java IO streams * Mp4 muxing (only DASH brand) * WebM muxing * Captions downloading * alert dialog for overwrite existing downloads finished or not. Misc changes * delete SQLiteDownloadDataSource.java * delete DownloadMissionSQLiteHelper.java * implement Localization from #114 Misc fixes (this branch) * restore old mission listeners variables. Prevents registered listeners get de-referenced on low-end devices * DownloadManagerService.checkForRunningMission() now return false if the mission has a error. * use Intent.FLAG_ACTIVITY_NEW_TASK when launching an activity from gigaget threads (apparently it is required in old versions of android) More changes * proper error handling "infrastructure" * queue instead of multiple downloads * move serialized pending downloads (.giga files) to app data * stop downloads when swicthing to mobile network (never works, see 2nd point) * save the thread count for next downloads * a lot of incoherences fixed * delete DownloadManagerTest.java (too many changes to keep this file updated)
This commit is contained in:
parent
2dc2a56671
commit
21e205a6be
48 changed files with 4379 additions and 1119 deletions
|
|
@ -1,11 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<item
|
||||
android:id="@+id/switch_mode"
|
||||
android:icon="@drawable/list"
|
||||
android:title="@string/grid"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:title="@string/settings"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:visible="false"
|
||||
android:id="@+id/clear_list"
|
||||
android:icon="@drawable/ic_delete_sweep_white_24dp"
|
||||
android:title="@string/clear_finished_download"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
|
||||
<item android:id="@+id/action_settings"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/settings"/>
|
||||
<item android:id="@+id/switch_mode"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/switch_view"/>
|
||||
</menu>
|
||||
|
|
@ -1,37 +1,50 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/start"
|
||||
android:title="@string/start"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/pause"
|
||||
android:title="@string/pause"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/view"
|
||||
android:title="@string/view"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/delete"
|
||||
android:title="@string/delete"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/checksum"
|
||||
android:title="@string/checksum">
|
||||
|
||||
<menu>
|
||||
|
||||
<item
|
||||
android:id="@+id/md5"
|
||||
android:title="@string/md5"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/sha1"
|
||||
android:title="@string/sha1"/>
|
||||
|
||||
</menu>
|
||||
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/start"
|
||||
android:title="@string/start" />
|
||||
|
||||
<item
|
||||
android:id="@+id/pause"
|
||||
android:title="@string/pause" />
|
||||
|
||||
<item
|
||||
android:id="@+id/queue"
|
||||
android:title="@string/enqueue"
|
||||
android:checkable="true"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/open"
|
||||
android:title="@string/view" />
|
||||
|
||||
<item
|
||||
android:id="@+id/delete"
|
||||
android:title="@string/delete" />
|
||||
|
||||
<item
|
||||
android:id="@+id/error_message_view"
|
||||
android:title="@string/show_error" />
|
||||
|
||||
<item
|
||||
android:id="@+id/source"
|
||||
android:title="@string/show_info" />
|
||||
|
||||
<item
|
||||
android:id="@+id/checksum"
|
||||
android:title="@string/checksum">
|
||||
|
||||
<menu>
|
||||
|
||||
<item
|
||||
android:id="@+id/md5"
|
||||
android:title="@string/md5" />
|
||||
|
||||
<item
|
||||
android:id="@+id/sha1"
|
||||
android:title="@string/sha1" />
|
||||
|
||||
</menu>
|
||||
|
||||
</item>
|
||||
|
||||
</menu>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue