From: Damyan Ivanov Date: Fri, 3 May 2019 15:10:15 +0000 (+0300) Subject: whitespace X-Git-Tag: v0.10.0~59 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=294362e52db84e8db8a165c3f79f0367427ba9ff;p=mobile-ledger.git whitespace --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java index 9db9c9df..14d700c2 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -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); } } diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java index 0843dc29..4f9573b0 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java @@ -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); }); diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java index 9342e052..80bc9951 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java @@ -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;