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

I tested. Looks like not needed.

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 14:30:02 +01:00 committed by Alper Öztürk (Rebase PR Action)
parent 8c43463df0
commit 224c2e64ea

View file

@ -519,7 +519,6 @@ public class FileDisplayActivity extends FileActivity implements FileFragment.Co
OCFile file = IntentExtensionsKt.getParcelableArgument(intent, EXTRA_FILE, OCFile.class); OCFile file = IntentExtensionsKt.getParcelableArgument(intent, EXTRA_FILE, OCFile.class);
setFile(file); setFile(file);
setIntent(intent); setIntent(intent);
setFile(IntentExtensionsKt.getParcelableArgument(intent, EXTRA_FILE, OCFile.class)); // is it needed?
showDetails(file); showDetails(file);
} else if (Intent.ACTION_VIEW.equals(intent.getAction())) { } else if (Intent.ACTION_VIEW.equals(intent.getAction())) {
handleOpenFileViaIntent(intent); handleOpenFileViaIntent(intent);