[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2-2' - android/app
mert (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 17 12:19:24 UTC 2020
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 9dd6cb3983090148aa28b401d29b435384a6827e
Author: mert <mert.tumer at collabora.com>
AuthorDate: Tue Apr 14 20:01:05 2020 +0300
Commit: Mert Tümer <mert.tumer at collabora.com>
CommitDate: Fri Apr 17 14:19:06 2020 +0200
Android: fix tapping on file name doesn't open files anymore.
Change-Id: Ic5e34a1ee484fedc888d8fae58354241a3cd7beb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92212
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Mert Tümer <mert.tumer at collabora.com>
(cherry picked from commit 6c1f49d404663dcd305503083f6f4c5500a77800)
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92305
diff --git a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
index cf69e690e..f7a1b9151 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
@@ -115,12 +115,16 @@ class RecentFilesAdapter extends RecyclerView.Adapter<RecentFilesAdapter.ViewHol
public void onBindViewHolder(ViewHolder holder, int position) {
final RecentFile file = recentFiles.get(position);
- holder.imageView.setOnClickListener(new View.OnClickListener() {
+ View.OnClickListener clickListener = new View.OnClickListener() {
@Override
public void onClick(View view) {
mActivity.open(file.uri);
+
}
- });
+ };
+
+ holder.filenameView.setOnClickListener(clickListener);
+ holder.imageView.setOnClickListener(clickListener);
holder.fileActionsImageView.setOnClickListener(new View.OnClickListener() {
@Override
More information about the Libreoffice-commits
mailing list