X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/ea4cefc7be2bdb0d5e85e6d7a22702ac6cd54493..91225458c1c52614b0254badd9b5e25ebe880f8e:/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 d19cd3cf..ec4def42 100644 --- a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java @@ -106,7 +106,7 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements // TODO: fix hack: workaround for bug in actionbar sherlock // it always shows indeterminate progress bar - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH) { + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setProgressBarIndeterminateVisibility(false); } @@ -417,14 +417,12 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements // Figure out the path where the dir needs to be created String path; if (mCurrentDir == null) { + // this is just a patch; we should ensure that mCurrentDir never is null if (!mStorageManager.fileExists("/")) { OCFile file = new OCFile("/"); mStorageManager.saveFile(file); - mCurrentDir = mStorageManager.getFileByPath("/"); - } else { - Log.wtf("FileDisplay", "OMG NO!"); - return; } + mCurrentDir = mStorageManager.getFileByPath("/"); } path = FileDisplayActivity.this.mCurrentDir.getRemotePath();