From: David A. Velasco Date: Tue, 9 Apr 2013 12:10:10 +0000 (+0200) Subject: Fixed (tablet, landscape): when the 'playing audio' notification is clicked, the... X-Git-Tag: oc-android-1.4.3~39^2~2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/bed905c9b828604f318456c7e2d25f2fc4141ba6?ds=inline;hp=--cc Fixed (tablet, landscape): when the 'playing audio' notification is clicked, the app shows the current playback details --- bed905c9b828604f318456c7e2d25f2fc4141ba6 diff --git a/src/com/owncloud/android/ui/activity/FileDetailActivity.java b/src/com/owncloud/android/ui/activity/FileDetailActivity.java index ba948d36..19337356 100644 --- a/src/com/owncloud/android/ui/activity/FileDetailActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDetailActivity.java @@ -116,7 +116,7 @@ public class FileDetailActivity extends SherlockFragmentActivity implements File } else { - backToDisplayActivity(); // the 'back' won't be effective until this.onStart() and this.onResume() are completed; + backToDisplayActivity(false); // the 'back' won't be effective until this.onStart() and this.onResume() are completed; } @@ -244,7 +244,7 @@ public class FileDetailActivity extends SherlockFragmentActivity implements File switch(item.getItemId()){ case android.R.id.home: - backToDisplayActivity(); + backToDisplayActivity(true); returnValue = true; break; default: @@ -256,12 +256,12 @@ public class FileDetailActivity extends SherlockFragmentActivity implements File - private void backToDisplayActivity() { + private void backToDisplayActivity(boolean moveToParent) { Intent intent = new Intent(this, FileDisplayActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); OCFile targetFile = null; if (mFile != null) { - targetFile = mStorageManager.getFileById(mFile.getParentId()); + targetFile = moveToParent ? mStorageManager.getFileById(mFile.getParentId()) : mFile; } intent.putExtra(FileDetailFragment.EXTRA_FILE, targetFile); intent.putExtra(FileDetailFragment.EXTRA_ACCOUNT, mAccount);