diff --git a/app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java b/app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java index a9e1561987..f588bdb07b 100644 --- a/app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -6,9 +6,11 @@ * @author David A. Velasco * @author Andy Scherzinger * @author Chris Narkiewicz + * @author TSI-mc * Copyright (C) 2011 Bartek Przybylski * Copyright (C) 2016 ownCloud Inc. * Copyright (C) 2018 Andy Scherzinger + * Copyright (C) 2023 TSI-mc * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, @@ -1657,6 +1659,12 @@ public class OCFileListFragment extends ExtendedListFragment implements return; } + // avoid calling api multiple times if async task is already executing + if (remoteOperationAsyncTask != null && remoteOperationAsyncTask.getStatus() != AsyncTask.Status.FINISHED) { + Log_OC.d(TAG, "OCFileListSearchAsyncTask already running skipping new api call for search event: " + searchEvent.getSearchType()); + return; + } + prepareCurrentSearch(event); searchFragment = true; setEmptyListLoadingMessage(); diff --git a/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java b/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java index b6277d8932..93ef97c279 100644 --- a/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java +++ b/app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java @@ -4,9 +4,11 @@ * @author David A. Velasco * @author Chris Narkiewicz * @author Andy Scherzinger + * @author TSI-mc * Copyright (C) 2016 ownCloud Inc. * Copyright (C) 2019 Chris Narkiewicz * Copyright (C) 2020 Andy Scherzinger + * Copyright (C) 2023 TSI-mc * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, @@ -410,7 +412,7 @@ public class PreviewMediaFragment extends FileFragment implements OnTouchListene final OCFile fileNew = getFile(); if (fileNew != null) { - showFileActions(file); + showFileActions(fileNew); } } } diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml index 7273bee2b5..2b499a2ea1 100644 --- a/app/src/main/res/values-gl/strings.xml +++ b/app/src/main/res/values-gl/strings.xml @@ -45,7 +45,7 @@ O usuario que introduciu non coincide co usuario desta conta Versión do servidor non recoñecida Estabeleceuse a conexión - O seu servidor non está devolvendo unha identificación de usuario correcta; contacte cun administrador. + O seu servidor non está devolvendo unha identificación de usuario correcta; contacte coa administración da instancia. Enderezo do servidor https://… O formato do enderezo do servidor é erróneo Non se atopou o servidor @@ -712,7 +712,7 @@ compartido compartido mediante ligazón Compartido con Vde. por %1$s - Produciuse un fallo ao engadir un recurso compartido + Produciuse un fallo ao engadir unha compartición Amosar as fotos Amosar os vídeos Rexistrarse cun provedor