mirror of
https://github.com/nextcloud/android.git
synced 2024-12-17 22:41:54 +03:00
Fixed (tablet, landscape): when the 'playing audio' notification is clicked, the app shows the current playback details
This commit is contained in:
parent
8638936ce7
commit
bed905c9b8
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue