diff --git a/app/build.gradle b/app/build.gradle index 7c10447..115e442 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "ml.puredark.hviewer" minSdkVersion 17 targetSdkVersion 22 - versionCode 33 - versionName "0.5.4" + versionCode 34 + versionName "0.5.5" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } diff --git a/app/src/main/java/ml/puredark/hviewer/activities/DownloadActivity.java b/app/src/main/java/ml/puredark/hviewer/activities/DownloadActivity.java index 51e18ce..ed091a2 100644 --- a/app/src/main/java/ml/puredark/hviewer/activities/DownloadActivity.java +++ b/app/src/main/java/ml/puredark/hviewer/activities/DownloadActivity.java @@ -213,7 +213,7 @@ private void distinguishDownloadTasks() { downloadedTasks = (List) downloadedTaskAdapter.getDataProvider().getItems(); for (DownloadTask task : downloadTasks) { if (task.status == DownloadTask.STATUS_COMPLETED) - downloadedTasks.add(task); + downloadedTasks.add(0, task); else downloadingTasks.add(task); }