From 847d8acdd49a3ca41b66464ce9e78ed2a428e67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Sch=C3=A4ttgen?= Date: Sun, 21 Aug 2016 23:13:27 +0200 Subject: [PATCH] Replaced custom ItemClickListener and added ripple --- .idea/misc.xml | 2 +- .../main/java/me/impy/aegis/KeyProfileAdapter.java | 13 ++----------- app/src/main/java/me/impy/aegis/MainActivity.java | 11 ++++++----- app/src/main/res/layout/card_keyprofile.xml | 3 +++ 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d199810..fbb68289 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/src/main/java/me/impy/aegis/KeyProfileAdapter.java b/app/src/main/java/me/impy/aegis/KeyProfileAdapter.java index 8c80a67d..db35695e 100644 --- a/app/src/main/java/me/impy/aegis/KeyProfileAdapter.java +++ b/app/src/main/java/me/impy/aegis/KeyProfileAdapter.java @@ -30,8 +30,6 @@ import me.impy.aegis.helpers.ItemClickListener; public class KeyProfileAdapter extends RecyclerView.Adapter implements RVHAdapter { private ArrayList mKeyProfiles; private final List lstHolders; - private final ItemClickListener itemClickListener; - private Handler mHandler = new Handler(); private Runnable updateRemainingTimeRunnable = new Runnable() { @@ -118,11 +116,10 @@ public class KeyProfileAdapter extends RecyclerView.Adapter keyProfiles, @NonNull ItemClickListener listener) { + public KeyProfileAdapter(ArrayList keyProfiles) { mKeyProfiles = keyProfiles; lstHolders = new ArrayList<>(); - this.itemClickListener = listener; startUpdateTimer(); } @@ -144,13 +141,7 @@ public class KeyProfileAdapter extends RecyclerView.Adapter