From: David A. Velasco Date: Tue, 22 Oct 2013 12:15:21 +0000 (-0700) Subject: Merge pull request #284 from owncloud/setup_app_name X-Git-Tag: oc-android-1.5.5~159 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/f79e2c0430b9b732d299cbb516c6884715d10e11?hp=-c Merge pull request #284 from owncloud/setup_app_name Setup app name, optional settings, and availability of multiple accounts. --- f79e2c0430b9b732d299cbb516c6884715d10e11 diff --combined AndroidManifest.xml index 01bac8a1,0acd29f0..ac8c1506 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@@ -18,8 -18,8 +18,8 @@@ along with this program. If not, see . --> + android:versionCode="104006" + android:versionName="1.4.6" xmlns:android="http://schemas.android.com/apk/res/android"> @@@ -44,6 -44,7 +44,7 @@@ @@@ -123,7 -124,7 +124,7 @@@ = 0 && intent.getAction().equals(FileDownloader.DOWNLOAD_FINISH_MESSAGE)) { + if (position >= 0 && intent.getAction().equals(mDownloadFinishMessage)) { if (downloadWasFine) { mPreviewImagePagerAdapter.updateFile(position, file); @@@ -431,12 -436,8 +439,12 @@@ if (!file.isImage()) { throw new IllegalArgumentException("Non-image file passed as argument"); } - mStorageManager = new FileDataStorageManager(getAccount(), getContentResolver()); - file = mStorageManager.getFileById(file.getFileId()); + mStorageManager = new FileDataStorageManager(getAccount(), getContentResolver()); + + // Update file according to DB file, if it is possible + if (file.getFileId() > DataStorageManager.ROOT_PARENT_ID) + file = mStorageManager.getFileById(file.getFileId()); + if (file != null) { /// Refresh the activity according to the Account and OCFile set setFile(file); // reset after getting it fresh from mStorageManager