|
|
@ -81,7 +81,10 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onClick(View view) {
|
|
|
|
public void onClick(View view) {
|
|
|
|
TupleFolderEx folder = filtered.get(getLayoutPosition());
|
|
|
|
int pos = getAdapterPosition();
|
|
|
|
|
|
|
|
if (pos == RecyclerView.NO_POSITION)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
TupleFolderEx folder = filtered.get(pos);
|
|
|
|
|
|
|
|
|
|
|
|
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
|
|
|
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
|
|
|
lbm.sendBroadcast(
|
|
|
|
lbm.sendBroadcast(
|
|
|
@ -91,7 +94,10 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onLongClick(View view) {
|
|
|
|
public boolean onLongClick(View view) {
|
|
|
|
TupleFolderEx folder = filtered.get(getLayoutPosition());
|
|
|
|
int pos = getAdapterPosition();
|
|
|
|
|
|
|
|
if (pos == RecyclerView.NO_POSITION)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
TupleFolderEx folder = filtered.get(pos);
|
|
|
|
|
|
|
|
|
|
|
|
if (!EntityFolder.TYPE_OUTBOX.equals(folder.type)) {
|
|
|
|
if (!EntityFolder.TYPE_OUTBOX.equals(folder.type)) {
|
|
|
|
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
|
|
|
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
|
|
|