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);
}
}
import android.app.Activity;
import android.app.AlertDialog;
-import android.content.DialogInterface;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
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);
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);
});
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) {
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;