Style corrected
This commit is contained in:
parent
d071891b2a
commit
2c8222fd55
2 changed files with 4 additions and 5 deletions
|
@ -88,7 +88,6 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
||||||
private static final String UNDEFINED_PROGRESS = "--.-%";
|
private static final String UNDEFINED_PROGRESS = "--.-%";
|
||||||
private static final String DEFAULT_MIME_TYPE = "*/*";
|
private static final String DEFAULT_MIME_TYPE = "*/*";
|
||||||
private static final String UNDEFINED_ETA = "--:--";
|
private static final String UNDEFINED_ETA = "--:--";
|
||||||
private static final int TIMEOUT = 5000;// ms
|
|
||||||
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -595,7 +594,7 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
||||||
mSnackbar.setActionTextColor(Color.YELLOW);
|
mSnackbar.setActionTextColor(Color.YELLOW);
|
||||||
mSnackbar.show();
|
mSnackbar.show();
|
||||||
|
|
||||||
mHandler.postDelayed(rDelete, TIMEOUT);
|
mHandler.postDelayed(rDelete, 5000);
|
||||||
} else if (!delete) {
|
} else if (!delete) {
|
||||||
mDownloadManager.forgetFinishedDownloads();
|
mDownloadManager.forgetFinishedDownloads();
|
||||||
applyChanges();
|
applyChanges();
|
||||||
|
@ -603,7 +602,7 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
||||||
}
|
}
|
||||||
|
|
||||||
private void deleteFinishedDownloads() {
|
private void deleteFinishedDownloads() {
|
||||||
if(mSnackbar != null) mSnackbar.dismiss();
|
if (mSnackbar != null) mSnackbar.dismiss();
|
||||||
|
|
||||||
Iterator<Mission> i = mHidden.iterator();
|
Iterator<Mission> i = mHidden.iterator();
|
||||||
while (i.hasNext()) {
|
while (i.hasNext()) {
|
||||||
|
|
|
@ -571,6 +571,8 @@
|
||||||
<string name="error_download_resource_gone">Cannot recover this download</string>
|
<string name="error_download_resource_gone">Cannot recover this download</string>
|
||||||
<string name="clear_download_history">Clear download history</string>
|
<string name="clear_download_history">Clear download history</string>
|
||||||
<string name="confirm_prompt">Do you want to clear your download history or delete all downloaded files?</string>
|
<string name="confirm_prompt">Do you want to clear your download history or delete all downloaded files?</string>
|
||||||
|
<string name="delete_downloaded_files">Delete downloaded files</string>
|
||||||
|
<string name="deleted_downloads">Deleted %s downloads</string>
|
||||||
<string name="stop">Stop</string>
|
<string name="stop">Stop</string>
|
||||||
<string name="max_retry_msg">Maximum retries</string>
|
<string name="max_retry_msg">Maximum retries</string>
|
||||||
<string name="max_retry_desc">Maximum number of attempts before canceling the download</string>
|
<string name="max_retry_desc">Maximum number of attempts before canceling the download</string>
|
||||||
|
@ -587,6 +589,4 @@
|
||||||
<string name="downloads_storage_use_saf_title">Use SAF</string>
|
<string name="downloads_storage_use_saf_title">Use SAF</string>
|
||||||
<string name="downloads_storage_use_saf_summary">The Storage Access Framework allows downloads to an external SD card.\nNote: some devices are not compatible</string>
|
<string name="downloads_storage_use_saf_summary">The Storage Access Framework allows downloads to an external SD card.\nNote: some devices are not compatible</string>
|
||||||
<string name="choose_instance_prompt">Choose an instance</string>
|
<string name="choose_instance_prompt">Choose an instance</string>
|
||||||
<string name="delete_downloaded_files">Delete downloaded files</string>
|
|
||||||
<string name="deleted_downloads">Deleted %s downloads</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue