mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Whitespace-only code formatting changes.
This commit is contained in:
@@ -52,12 +52,12 @@ public class StrengthMeter extends ProgressBar {
|
||||
}
|
||||
|
||||
public void setStrength(float strength) {
|
||||
if(strength < 0 || strength > 1) throw new IllegalArgumentException();
|
||||
if (strength < 0 || strength > 1) throw new IllegalArgumentException();
|
||||
int colour;
|
||||
if(strength < WEAK) colour = RED;
|
||||
else if(strength < QUITE_WEAK) colour = ORANGE;
|
||||
else if(strength < QUITE_STRONG) colour = YELLOW;
|
||||
else if(strength < STRONG) colour = LIME;
|
||||
if (strength < WEAK) colour = RED;
|
||||
else if (strength < QUITE_WEAK) colour = ORANGE;
|
||||
else if (strength < QUITE_STRONG) colour = YELLOW;
|
||||
else if (strength < STRONG) colour = LIME;
|
||||
else colour = GREEN;
|
||||
bar.getPaint().setColor(colour);
|
||||
setProgress((int) (strength * MAX));
|
||||
|
||||
Reference in New Issue
Block a user