Skip to content

Commit 536eaac

Browse files
committed
Prevented image files from being previewed when a security method is configured.
1 parent b2c42bb commit 536eaac

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

owncloudApp/src/main/java/com/owncloud/android/MainApp.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/**
22
* ownCloud Android client application
33
*
44
* @author masensio
@@ -7,6 +7,7 @@
77
* @author Christian Schabesberger
88
* @author David Crespo Ríos
99
* @author Juan Carlos Garrote Gascón
10+
* @author Fernando Sanz Velasco
1011
* Copyright (C) 2022 ownCloud GmbH.
1112
*
1213
* This program is free software: you can redistribute it and/or modify

owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
* @author Christian Schabesberger
88
* @author Shashvat Kedia
99
* @author Abel García de Prada
10+
* @author Fernando Sanz Velasco
1011
* Copyright (C) 2011 Bartek Przybylski
11-
* Copyright (C) 2020 ownCloud GmbH.
12+
* Copyright (C) 2022 ownCloud GmbH.
1213
*
1314
*
1415
* This program is free software: you can redistribute it and/or modify
@@ -1685,7 +1686,7 @@ class FileDisplayActivity : FileActivity(), FileFragment.ContainerActivity, OnEn
16851686
}
16861687

16871688
if (PreviewImageFragment.canBePreviewed(file)) {
1688-
startImagePreview(file)
1689+
showDetails(file)
16891690
} else {
16901691
initFragmentsWithFile()
16911692
}

0 commit comments

Comments
 (0)