]> git.ktnx.net Git - mobile-ledger.git/commitdiff
cleanup
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 31 Jan 2021 13:25:08 +0000 (15:25 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 31 Jan 2021 13:25:42 +0000 (13:25 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternListFragment.java

index 226f846f253929870a47278b177334599528eb67..3f8dbb13f21e9af11fa509c5edaa3a25eaaffaf6 100644 (file)
@@ -88,7 +88,7 @@ public class PatternListFragment extends Fragment {
         PatternHeaderDAO pDao = DB.get()
                                   .getPatternDAO();
         LiveData<List<PatternHeader>> 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