From: Damyan Ivanov Date: Sun, 31 Jan 2021 13:25:08 +0000 (+0200) Subject: cleanup X-Git-Tag: v0.17.0~188 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=80a4c49c73bb207740f3147501040068811ca0c0;p=mobile-ledger.git cleanup --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternListFragment.java index 226f846f..3f8dbb13 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternListFragment.java @@ -88,7 +88,7 @@ public class PatternListFragment extends Fragment { PatternHeaderDAO pDao = DB.get() .getPatternDAO(); LiveData> patterns = pDao.getPatterns(); - patterns.observe(getViewLifecycleOwner(), list -> {modelAdapter.setPatterns(list);}); + patterns.observe(getViewLifecycleOwner(), modelAdapter::setPatterns); LinearLayoutManager llm = new LinearLayoutManager(getContext()); llm.setOrientation(RecyclerView.VERTICAL); b.patternList.setLayoutManager(llm); @@ -117,12 +117,6 @@ public class PatternListFragment extends Fragment { }; getLifecycle().addObserver(observer); } - private void fabClicked(View view) { - if (mListener == null) - return; - - mListener.onEditPattern(null); - } /** * This interface must be implemented by activities that contain this * fragment to allow an interaction in this fragment to be communicated