i.putExtra(FileDownloader.EXTRA_REMOTE_PATH, mFile.getRemotePath());\r
i.putExtra(FileDownloader.EXTRA_FILE_PATH, mFile.getURLDecodedRemotePath());\r
i.putExtra(FileDownloader.EXTRA_FILE_SIZE, mFile.getFileLength());\r
+ v.setEnabled(false);\r
getActivity().startService(i);\r
}\r
\r
* @return True, if ownCloud the ownCloud version is supporting creationg time\r
*/\r
private boolean ocVersionSupportsTimeCreated(){\r
- if(mIntent != null){\r
+ /* if(mIntent != null){\r
Account ocAccount = mIntent.getParcelableExtra(FileDownloader.EXTRA_ACCOUNT);\r
if(ocAccount != null){\r
AccountManager accManager = (AccountManager) getActivity().getSystemService(Context.ACCOUNT_SERVICE);\r
return true;\r
}\r
}\r
- }\r
+ }*/\r
return false;\r
}\r
\r
private class DownloadFinishReceiver extends BroadcastReceiver {\r
@Override\r
public void onReceive(Context context, Intent intent) {\r
+ getView().findViewById(R.id.fdDownloadBtn).setEnabled(true);\r
if (intent.getAction().equals(FileDownloader.BAD_DOWNLOAD_MESSAGE)) {\r
Toast.makeText(context, R.string.downloader_download_failed , Toast.LENGTH_SHORT).show();\r
\r