Fixed (tablet, landscape): when the 'playing audio' notification is clicked, the app shows the current playback details

This commit is contained in:
David A. Velasco 2013-04-09 14:10:10 +02:00
parent 8638936ce7
commit bed905c9b8

View file

@ -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);