Update app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java

Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com>
Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
This commit is contained in:
Alper Öztürk 2023-12-18 11:47:32 +01:00 committed by Alper Öztürk (Rebase PR Action)
parent 6718a36933
commit cb329b1e37

View file

@ -1081,9 +1081,12 @@ public class FileDisplayActivity extends FileActivity implements FileFragment.Co
syncAndUpdateFolder(false, true);
OCFile startFile = null;
OCFile fileArgs = IntentExtensionsKt.getParcelableArgument(getIntent(), EXTRA_FILE, OCFile.class);
if (getIntent() != null && fileArgs != null) {
startFile = fileArgs;
if (getIntent() != null) {
OCFile fileArgs = IntentExtensionsKt.getParcelableArgument(getIntent(), EXTRA_FILE, OCFile.class);
if (fileArgs != null) {
startFile = fileArgs;
setFile(startFile);
}
setFile(startFile);
}