projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of gitorious.org:owncloud/android-devel
[pub/Android/ownCloud.git]
/
src
/
eu
/
alefzero
/
owncloud
/
ui
/
activity
/
FileDisplayActivity.java
diff --git
a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java
b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java
index
25cb714
..
ec4def4
100644
(file)
--- a/
src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java
+++ b/
src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java
@@
-417,14
+417,12
@@
public class FileDisplayActivity extends SherlockFragmentActivity implements
// Figure out the path where the dir needs to be created
\r
String path;
\r
if (mCurrentDir == null) {
\r
// Figure out the path where the dir needs to be created
\r
String path;
\r
if (mCurrentDir == null) {
\r
+ // this is just a patch; we should ensure that mCurrentDir never is null
\r
if (!mStorageManager.fileExists("/")) {
\r
OCFile file = new OCFile("/");
\r
mStorageManager.saveFile(file);
\r
if (!mStorageManager.fileExists("/")) {
\r
OCFile file = new OCFile("/");
\r
mStorageManager.saveFile(file);
\r
- mCurrentDir = mStorageManager.getFileByPath("/");
\r
- } else {
\r
- Log.wtf("FileDisplay", "OMG NO!");
\r
- return;
\r
}
\r
}
\r
+ mCurrentDir = mStorageManager.getFileByPath("/");
\r
}
\r
path = FileDisplayActivity.this.mCurrentDir.getRemotePath();
\r
\r
}
\r
path = FileDisplayActivity.this.mCurrentDir.getRemotePath();
\r
\r