whitespace
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 2 Apr 2019 21:13:13 +0000 (00:13 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 2 Apr 2019 21:13:13 +0000 (00:13 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java

index ffac1ec..77a56c3 100644 (file)
@@ -420,9 +420,9 @@ public class MainActivity extends ProfileThemedActivity {
             profile = MobileLedgerProfile.loadAllFromDB(profileUUID);
         }
         else {
-            try(LockHolder lh = Data.profiles.lockForReading()) {
+            try (LockHolder lh = Data.profiles.lockForReading()) {
                 int i = Data.getProfileIndex(profileUUID);
-                if (i == -1 ) i = 0;
+                if (i == -1) i = 0;
                 profile = Data.profiles.get(i);
             }
         }
index d394285..ea57ab7 100644 (file)
@@ -147,8 +147,7 @@ public class TransactionListFragment extends MobileLedgerListFragment {
             mActivity.scheduleTransactionListRetrieval();
         });
 
-        Colors.themeWatch.addObserver(
-                (o, arg) -> swiper.setColorSchemeColors(Colors.primary));
+        Colors.themeWatch.addObserver((o, arg) -> swiper.setColorSchemeColors(Colors.primary));
         swiper.setColorSchemeColors(Colors.primary);
 
         vAccountFilter = mActivity.findViewById(R.id.transaction_list_account_name_filter);