瀏覽代碼

proper commenting out of the else branch

AndyScherzinger 8 年之前
父節點
當前提交
a514cfb31c
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/com/owncloud/android/ui/helpers/FileOperationsHelper.java

+ 3 - 2
src/com/owncloud/android/ui/helpers/FileOperationsHelper.java

@@ -530,14 +530,15 @@ public class FileOperationsHelper {
                 intent.putExtra("mimeType", file.getMimetype());
                 mFileActivity.startActivityForResult(Intent.createChooser(intent,
                                                     mFileActivity.getString(R.string.set_as)), 200);
-            } else {
+            }
 //                 TODO re-enable after resized images is available
+//                else {
 //                Uri sendUri = Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + file.getRemotePath());
 //                Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
 //                intent.setDataAndType(sendUri, file.getMimetype());
 //                intent.putExtra("mimeType", file.getMimetype());
 //                mFileActivity.startActivityForResult(Intent.createChooser(intent, "Set As"), 200);
-            }
+//            }
         } else {
             Log_OC.wtf(TAG, "Trying to send a NULL OCFile");
         }