]> git.ktnx.net Git - mobile-ledger.git/commitdiff
whitespace
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:10:15 +0000 (18:10 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:10:15 +0000 (18:10 +0300)
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java

index 9db9c9dfdce8426b0df7275c7246c6515026f08f..14d700c2f28d1ef8eacd2def053b6957dce947a9 100644 (file)
@@ -252,7 +252,8 @@ public class RetrieveTransactionsTask
                                     lastAccount.addAmount(val, currency);
                                     for (LedgerAccount syn : syntheticAccounts.values()) {
                                         syn.addAmount(val, currency);
-                                        profile.storeAccountValue(db, syn.getName(), currency, val);
+                                        profile.storeAccountValue(db, syn.getName(), currency,
+                                                val);
                                     }
                                 }
 
index 0843dc29eb56ba145e46a7a93bb1b34348a33af3..4f9573b0c55895056149822f773d3cac9d5f27c9 100644 (file)
@@ -19,7 +19,6 @@ package net.ktnx.mobileledger.ui.profiles;
 
 import android.app.Activity;
 import android.app.AlertDialog;
-import android.content.DialogInterface;
 import android.os.Bundle;
 import android.text.Editable;
 import android.text.TextWatcher;
@@ -244,9 +243,9 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue
             if (isChecked) userName.requestFocus();
         });
 
-        postingPermitted.setOnCheckedChangeListener(((buttonView, isChecked) -> {
-            preferredAccountsFilterLayout.setVisibility(isChecked ? View.VISIBLE : View.GONE);
-        }));
+        postingPermitted.setOnCheckedChangeListener(
+                ((buttonView, isChecked) -> preferredAccountsFilterLayout
+                        .setVisibility(isChecked ? View.VISIBLE : View.GONE)));
 
         hookClearErrorOnFocusListener(profileName, profileNameLayout);
         hookClearErrorOnFocusListener(url, urlLayout);
@@ -284,8 +283,8 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue
         huePickerView.setTag(profileThemeId);
         huePickerView.setOnClickListener(v -> {
             HueRingDialog d = new HueRingDialog(
-                    Objects.requireNonNull(ProfileDetailFragment.this.getContext()),
-                    profileThemeId, (Integer) v.getTag());
+                    Objects.requireNonNull(ProfileDetailFragment.this.getContext()), profileThemeId,
+                    (Integer) v.getTag());
             d.show();
             d.setColorSelectedListener(this);
         });
index 9342e052d4510e70a151b5203e63944e7a8dc90e..80bc9951778ffb22b5cc86188b33f9ef85969224 100644 (file)
@@ -62,7 +62,7 @@ public class Colors {
         accent = tv.data;
 
         // trigger theme observers
-        themeWatch.postValue(themeWatch.getValue()+1);
+        themeWatch.postValue(themeWatch.getValue() + 1);
     }
     public static @ColorLong
     long hsvaColor(float hue, float saturation, float value, float alpha) {
@@ -154,7 +154,7 @@ public class Colors {
         if (y < 0) y += 360;
         float l = yellowLightness + (blueLightness - yellowLightness) *
                                     (float) Math.cos(Math.toRadians(Math.abs(180 - y) / 2f));
-        int result = hslColor(hueDegrees/360f, 0.845f, l);
+        int result = hslColor(hueDegrees / 360f, 0.845f, l);
         debug("colors", String.format(Locale.ENGLISH, "getPrimaryColorForHue(%d) = %x", hueDegrees,
                 result));
         return result;