mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Whitespace-only code formatting changes.
This commit is contained in:
@@ -14,11 +14,11 @@ public class AndroidUtils {
|
||||
@SuppressWarnings("deprecation")
|
||||
public static Collection<String> getSupportedArchitectures() {
|
||||
List<String> abis = new ArrayList<String>();
|
||||
if(Build.VERSION.SDK_INT >= 21) {
|
||||
for(String abi : Build.SUPPORTED_ABIS) abis.add(abi);
|
||||
} else if(Build.VERSION.SDK_INT >= 8) {
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
for (String abi : Build.SUPPORTED_ABIS) abis.add(abi);
|
||||
} else if (Build.VERSION.SDK_INT >= 8) {
|
||||
abis.add(Build.CPU_ABI);
|
||||
if(Build.CPU_ABI2 != null) abis.add(Build.CPU_ABI2);
|
||||
if (Build.CPU_ABI2 != null) abis.add(Build.CPU_ABI2);
|
||||
} else {
|
||||
abis.add(Build.CPU_ABI);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class AuthorView extends RelativeLayout {
|
||||
nameView.setSingleLine();
|
||||
nameView.setEllipsize(END);
|
||||
nameView.setPadding(pad, pad, pad, pad);
|
||||
if(name == null) nameView.setText(R.string.anonymous);
|
||||
if (name == null) nameView.setText(R.string.anonymous);
|
||||
else nameView.setText(name);
|
||||
LayoutParams leftOf = CommonLayoutParams.relative();
|
||||
leftOf.addRule(ALIGN_PARENT_LEFT);
|
||||
|
||||
@@ -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