projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a static list of downloads in progress to have a reliable way to check if a...
[pub/Android/ownCloud.git]
/
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
2f694f2
..
7101dd0
100644
(file)
--- a/
src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java
+++ b/
src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java
@@
-241,7
+241,7
@@
public class FileDetailFragment extends SherlockFragment implements
break;
\r
}
\r
case R.id.fdRemoveBtn: {
\r
break;
\r
}
\r
case R.id.fdRemoveBtn: {
\r
- ConfirmationDialogFragment confDialog = ConfirmationDialogFragment.newInstance(
"to remove " + mFile.getFileName()
);
\r
+ ConfirmationDialogFragment confDialog = ConfirmationDialogFragment.newInstance(
R.string.confirmation_remove_alert, new String[]{mFile.getFileName()}
);
\r
confDialog.setOnConfirmationListener(this);
\r
confDialog.show(getFragmentManager(), FTAG_CONFIRMATION);
\r
break;
\r
confDialog.setOnConfirmationListener(this);
\r
confDialog.show(getFragmentManager(), FTAG_CONFIRMATION);
\r
break;
\r
@@
-362,7
+362,7
@@
public class FileDetailFragment extends SherlockFragment implements
cb.setChecked(mFile.keepInSync());
\r
\r
// configure UI for depending upon local state of the file
\r
cb.setChecked(mFile.keepInSync());
\r
\r
// configure UI for depending upon local state of the file
\r
- if (
mFile.isDownloading(
)) {
\r
+ if (
FileDownloader.isDownloading(mAccount, mFile.getRemotePath()
)) {
\r
setButtonsForDownloading();
\r
\r
} else if (mFile.isDown()) {
\r
setButtonsForDownloading();
\r
\r
} else if (mFile.isDown()) {
\r