From 7c0ad62a9842c823df0188ad003d317e86764c11 Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 28 Sep 2021 23:08:22 -0400 Subject: [PATCH] I'm working to display share button when long press on a claim #1133. (https://github.com/lbryio/lbry-android/issues/1133) So far, I've located the longClick method in the claimadapter. I put some Log.d messages to confirm that I can do something when I long press. Evreything's working so it looks like I can progress to implement a menu kind of selection for sharing. --- .../browser/adapter/ClaimListAdapter.java | 20 +++++++++++++++++++ app/src/main/res/menu/menu_claim_popup.xml | 18 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 app/src/main/res/menu/menu_claim_popup.xml diff --git a/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java b/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java index a3fefc64..e08f8a8b 100644 --- a/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java @@ -2,12 +2,14 @@ package io.lbry.browser.adapter; import android.content.Context; import android.text.format.DateUtils; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; +import android.widget.Toast; import androidx.recyclerview.widget.RecyclerView; @@ -22,6 +24,7 @@ import java.util.List; import java.util.Map; import io.lbry.browser.R; +import io.lbry.browser.exceptions.LbryUriException; import io.lbry.browser.listener.SelectionModeListener; import io.lbry.browser.model.Claim; import io.lbry.browser.model.LbryFile; @@ -32,6 +35,7 @@ import lombok.Getter; import lombok.Setter; public class ClaimListAdapter extends RecyclerView.Adapter { + private static final String TAG = ClaimListAdapter.class.getSimpleName(); private static final int VIEW_TYPE_STREAM = 1; private static final int VIEW_TYPE_CHANNEL = 2; private static final int VIEW_TYPE_FEATURED = 3; // featured search result @@ -369,6 +373,22 @@ public class ClaimListAdapter extends RecyclerView.Adapter + + + + + + + + + + + +