Refactoring
This commit is contained in:
parent
272bbd8206
commit
fce7cb05e7
1 changed files with 1 additions and 2 deletions
|
@ -270,8 +270,7 @@ public class ReportsFragment extends BaseOsmAndFragment implements CountrySelect
|
||||||
}
|
}
|
||||||
if (donationsTotalLayout != null &&
|
if (donationsTotalLayout != null &&
|
||||||
donationsTotalTextView != null) {
|
donationsTotalTextView != null) {
|
||||||
boolean world = regionUrlString.isEmpty();
|
donationsTotalLayout.setVisibility(regionUrlString.isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
donationsTotalLayout.setVisibility(world ? View.VISIBLE : View.GONE);
|
|
||||||
donationsTotalTextView.setText(String.format("%.3f", response.btc*1000f) + " mBTC");
|
donationsTotalTextView.setText(String.format("%.3f", response.btc*1000f) + " mBTC");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue