]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 ffac1ecf14deed26f603a2c896b40a49264df637..77a56c35325dc5d6533799565d9c80aa401bd0a9 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 d39428525dcdffb2f047a66dff60ac9a7ba12e20..ea57ab7c0c3d897571f10cddc8658b27ebe73e9d 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);