Răsfoiți Sursa

File list is updated when a file contained in the current directory finished its download although it wasn't successful

David A. Velasco 12 ani în urmă
părinte
comite
cc313d2e48

+ 1 - 1
AndroidManifest.xml

@@ -18,7 +18,7 @@
  -->
  -->
 <manifest package="eu.alefzero.owncloud"
 <manifest package="eu.alefzero.owncloud"
     android:versionCode="1"
     android:versionCode="1"
-    android:versionName="0.1.182B" xmlns:android="http://schemas.android.com/apk/res/android">
+    android:versionName="0.1.183B" xmlns:android="http://schemas.android.com/apk/res/android">
 
 
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />

+ 1 - 2
src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java

@@ -707,12 +707,11 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements
     private class DownloadFinishReceiver extends BroadcastReceiver {
     private class DownloadFinishReceiver extends BroadcastReceiver {
         @Override
         @Override
         public void onReceive(Context context, Intent intent) {
         public void onReceive(Context context, Intent intent) {
-            boolean downloadWasFine = intent.getBooleanExtra(FileDownloader.EXTRA_DOWNLOAD_RESULT, false);
             String downloadedRemotePath = intent.getStringExtra(FileDownloader.EXTRA_REMOTE_PATH);
             String downloadedRemotePath = intent.getStringExtra(FileDownloader.EXTRA_REMOTE_PATH);
             String accountName = intent.getStringExtra(FileDownloader.ACCOUNT_NAME);
             String accountName = intent.getStringExtra(FileDownloader.ACCOUNT_NAME);
 
 
             if (accountName.equals(AccountUtils.getCurrentOwnCloudAccount(context).name) &&
             if (accountName.equals(AccountUtils.getCurrentOwnCloudAccount(context).name) &&
-                    downloadWasFine && mCurrentDir != null && mCurrentDir.getFileId() == mStorageManager.getFileByPath(downloadedRemotePath).getParentId()) {
+                     mCurrentDir != null && mCurrentDir.getFileId() == mStorageManager.getFileByPath(downloadedRemotePath).getParentId()) {
                 FileListFragment fileListFragment = (FileListFragment) getSupportFragmentManager().findFragmentById(R.id.fileList);
                 FileListFragment fileListFragment = (FileListFragment) getSupportFragmentManager().findFragmentById(R.id.fileList);
                 if (fileListFragment != null) { 
                 if (fileListFragment != null) { 
                     fileListFragment.listDirectory();
                     fileListFragment.listDirectory();