]> git.ktnx.net Git - mobile-ledger.git/commitdiff
whitespace
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 22 Dec 2019 12:58:41 +0000 (14:58 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 22 Dec 2019 12:58:41 +0000 (14:58 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java

index d53cc6f0a98684df0b65df71d31282e7a0b80f3b..13c4fe04bd1d61d41045f841831a35e6625c3c23 100644 (file)
@@ -19,16 +19,16 @@ package net.ktnx.mobileledger.ui;
 
 import android.view.MotionEvent;
 
-import net.ktnx.mobileledger.ui.activity.MainActivity;
-import net.ktnx.mobileledger.ui.transaction_list.TransactionListAdapter;
-import net.ktnx.mobileledger.utils.Colors;
-import net.ktnx.mobileledger.utils.DimensionUtils;
-
 import androidx.annotation.NonNull;
 import androidx.fragment.app.Fragment;
 import androidx.recyclerview.widget.RecyclerView;
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
 
+import net.ktnx.mobileledger.ui.activity.MainActivity;
+import net.ktnx.mobileledger.ui.transaction_list.TransactionListAdapter;
+import net.ktnx.mobileledger.utils.Colors;
+import net.ktnx.mobileledger.utils.DimensionUtils;
+
 public class MobileLedgerListFragment extends Fragment {
     public SwipeRefreshLayout swiper;
     public TransactionListAdapter modelAdapter;
@@ -38,8 +38,10 @@ public class MobileLedgerListFragment extends Fragment {
         swiper.setColorSchemeColors(Colors.getColors());
     }
     public void onBackgroundTaskRunningChanged(Boolean isRunning) {
-        if (mActivity == null) return;
-        if (swiper == null) return;
+        if (mActivity == null)
+            return;
+        if (swiper == null)
+            return;
         swiper.setRefreshing(isRunning);
     }
     protected void manageFabOnScroll() {
@@ -66,7 +68,8 @@ public class MobileLedgerListFragment extends Fragment {
                             // swipe up
                             downAnchor = lastY;
 
-                            if (currentY < upAnchor - triggerPixels) mActivity.fabHide();
+                            if (currentY < upAnchor - triggerPixels)
+                                mActivity.fabHide();
                         }
 
                         lastY = currentY;