mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 06:51:55 +03:00
Fixed infinity loop in media previews when the icon in the action bar (UP button) is pressed
This commit is contained in:
parent
48e7e40394
commit
cf2ba0bc07
1 changed files with 5 additions and 1 deletions
|
@ -258,7 +258,11 @@ public class FileDetailActivity extends SherlockFragmentActivity implements File
|
||||||
private void backToDisplayActivity() {
|
private void backToDisplayActivity() {
|
||||||
Intent intent = new Intent(this, FileDisplayActivity.class);
|
Intent intent = new Intent(this, FileDisplayActivity.class);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||||
intent.putExtra(FileDetailFragment.EXTRA_FILE, mFile);
|
OCFile targetFile = null;
|
||||||
|
if (mFile != null) {
|
||||||
|
targetFile = mStorageManager.getFileById(mFile.getParentId());
|
||||||
|
}
|
||||||
|
intent.putExtra(FileDetailFragment.EXTRA_FILE, targetFile);
|
||||||
intent.putExtra(FileDetailFragment.EXTRA_ACCOUNT, mAccount);
|
intent.putExtra(FileDetailFragment.EXTRA_ACCOUNT, mAccount);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
finish();
|
finish();
|
||||||
|
|
Loading…
Reference in a new issue