mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Oops
This commit is contained in:
@@ -121,7 +121,11 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
|
||||
|
||||
ivExternal.setVisibility(View.GONE);
|
||||
|
||||
int percent = Math.round(account.quota_usage * 100f / account.quota_limit);
|
||||
int percent;
|
||||
if (account.quota_usage == null || account.quota_limit == null)
|
||||
percent = 0;
|
||||
else
|
||||
percent = Math.round(account.quota_usage * 100f / account.quota_limit);
|
||||
if (account.error != null) {
|
||||
ivWarning.setEnabled(false);
|
||||
ivWarning.setImageResource(R.drawable.twotone_warning_24);
|
||||
|
||||
Reference in New Issue
Block a user