File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed
owncloudApp/src/main/java/com/owncloud/android/ui/fragment Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 1+ Changelog for ownCloud Android Client [ unreleased] (UNRELEASED)
2+ =======================================
3+ The following sections list the changes in ownCloud Android Client unreleased relevant to
4+ ownCloud admins and users.
5+
6+ [ unreleased ] : https://github.com/owncloud/android/compare/v2.21.0...master
7+
8+ Summary
9+ -------
10+
11+ * Bugfix - Fix crash when opening from details screen: [ #3696 ] ( https://github.com/owncloud/android/pull/3696 )
12+
13+ Details
14+ -------
15+
16+ * Bugfix - Fix crash when opening from details screen: [ #3696 ] ( https://github.com/owncloud/android/pull/3696 )
17+
18+ Fixed a crash when opening a non downloaded file from the details view.
19+
20+ https://github.com/owncloud/android/pull/3696
21+
122Changelog for ownCloud Android Client [ 2.21.0] (2022-06-07)
223=======================================
324The following sections list the changes in ownCloud Android Client 2.21.0 relevant to
Original file line number Diff line number Diff line change 1+ Bugfix: Fix crash when opening from details screen
2+
3+ Fixed a crash when opening a non downloaded file from the details view.
4+
5+ https://github.com/owncloud/android/pull/3696
Original file line number Diff line number Diff line change @@ -281,7 +281,12 @@ public boolean onOptionsItemSelected(MenuItem item) {
281281 return true ;
282282 }
283283 case R .id .action_open_file_with : {
284- mContainerActivity .getFileOperationsHelper ().openFile (getFile ());
284+ if (!getFile ().isDown ()) { // Download the file
285+ Timber .d ("%s : File must be downloaded before opening" , getFile ().getRemotePath ());
286+ ((FileDisplayActivity ) mContainerActivity ).startDownloadForOpening (getFile ());
287+ } else {
288+ mContainerActivity .getFileOperationsHelper ().openFile (getFile ());
289+ }
285290 return true ;
286291 }
287292 case R .id .action_remove_file : {
@@ -305,7 +310,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
305310 }
306311 case R .id .action_send_file : {
307312 // Obtain the file
308- if (!getFile ().isDown ()) { // Download the file
313+ if (!getFile ().isDown ()) { // Download the file
309314 Timber .d ("%s : File must be downloaded" , getFile ().getRemotePath ());
310315 ((FileDisplayActivity ) mContainerActivity ).startDownloadForSending (getFile ());
311316 } else {
You can’t perform that action at this time.
0 commit comments