From e2aa0e8b1dcf6011f0162dbf47e0fa71527d37e7 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Thu, 10 Aug 2017 00:40:44 +0200 Subject: [PATCH] Fixed FAB --- app/build.gradle | 2 +- .../dissem/apps/abit/AddressListFragment.java | 52 +++++++-------- .../dissem/apps/abit/MessageListFragment.java | 65 +++++++++---------- .../ch/dissem/apps/abit/util/FabUtils.java | 35 ---------- .../java/ch/dissem/apps/abit/util/FabUtils.kt | 34 ++++++++++ .../main/res/layout-w720dp/activity_main.xml | 13 ++-- 6 files changed, 95 insertions(+), 106 deletions(-) delete mode 100644 app/src/main/java/ch/dissem/apps/abit/util/FabUtils.java create mode 100644 app/src/main/java/ch/dissem/apps/abit/util/FabUtils.kt diff --git a/app/build.gradle b/app/build.gradle index 7c77450..aa96004 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -75,7 +75,7 @@ dependencies { compile 'com.journeyapps:zxing-android-embedded:3.5.0@aar' compile 'com.google.zxing:core:3.3.0' - compile 'com.github.kobakei:MaterialFabSpeedDial:1.1.4' + compile 'com.github.kobakei:MaterialFabSpeedDial:1.1.5' compile 'com.github.amlcurran.showcaseview:library:5.4.3' compile('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.10.4@aar') { transitive = true diff --git a/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.java b/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.java index e0312a1..f30b4ca 100644 --- a/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.java +++ b/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.java @@ -91,6 +91,7 @@ public class AddressListFragment extends AbstractItemListFragment { public void onResume() { super.onResume(); MainActivity activity = (MainActivity) getActivity(); + initFab(activity); messageRepo = Singleton.getMessageRepository(activity); if (backStack.isEmpty()) { @@ -239,43 +240,39 @@ public class MessageListFragment extends Fragment implements ListHolder