mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fixed a bug that would cause the details view to be shown upon turning off and on the screen
This commit is contained in:
parent
093bf4fb5c
commit
b1ef5d94d4
1 changed files with 5 additions and 3 deletions
|
@ -304,6 +304,8 @@ public class FileDisplayActivity extends HookActivity implements
|
|||
|
||||
} else {
|
||||
cleanSecondFragment();
|
||||
if (file.isDown() && PreviewTextFragment.canBePreviewed(file))
|
||||
startTextPreview(file);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -327,9 +329,9 @@ public class FileDisplayActivity extends HookActivity implements
|
|||
boolean autoplay = getIntent().getBooleanExtra(PreviewVideoActivity.EXTRA_AUTOPLAY, true);
|
||||
secondFragment = new PreviewMediaFragment(file, getAccount(), startPlaybackPosition, autoplay);
|
||||
|
||||
} else {
|
||||
secondFragment = new FileDetailFragment(file, getAccount());
|
||||
}
|
||||
} else if (file.isDown() && PreviewTextFragment.canBePreviewed(file)) {
|
||||
secondFragment = null;
|
||||
} else secondFragment = new FileDetailFragment(file, getAccount());
|
||||
}
|
||||
return secondFragment;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue