X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/054180baa7ba0436409ed34778a37dd0afeff6b8..43da474a54718e5cfcd8be06c0aaa5b81b80699e:/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java diff --git a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java index 1ab92842..9bcf9dee 100644 --- a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java +++ b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java @@ -152,6 +152,7 @@ public class FileDetailFragment extends SherlockFragment implements i.putExtra(FileDownloader.EXTRA_REMOTE_PATH, mFile.getRemotePath()); i.putExtra(FileDownloader.EXTRA_FILE_PATH, mFile.getURLDecodedRemotePath()); i.putExtra(FileDownloader.EXTRA_FILE_SIZE, mFile.getFileLength()); + v.setEnabled(false); getActivity().startService(i); } @@ -352,7 +353,7 @@ public class FileDetailFragment extends SherlockFragment implements * @return True, if ownCloud the ownCloud version is supporting creationg time */ private boolean ocVersionSupportsTimeCreated(){ - if(mIntent != null){ + /* if(mIntent != null){ Account ocAccount = mIntent.getParcelableExtra(FileDownloader.EXTRA_ACCOUNT); if(ocAccount != null){ AccountManager accManager = (AccountManager) getActivity().getSystemService(Context.ACCOUNT_SERVICE); @@ -362,7 +363,7 @@ public class FileDetailFragment extends SherlockFragment implements return true; } } - } + }*/ return false; } @@ -373,6 +374,7 @@ public class FileDetailFragment extends SherlockFragment implements private class DownloadFinishReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { + getView().findViewById(R.id.fdDownloadBtn).setEnabled(true); if (intent.getAction().equals(FileDownloader.BAD_DOWNLOAD_MESSAGE)) { Toast.makeText(context, R.string.downloader_download_failed , Toast.LENGTH_SHORT).show();