mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-24 03:41:30 +00:00
Merge branch 'Zillode-do-not-scare-ppl'
This commit is contained in:
commit
34bded841d
1 changed files with 3 additions and 4 deletions
|
@ -182,12 +182,11 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
});
|
});
|
||||||
mCpuUsage.setText(new DecimalFormat("0.00").format(info.cpuPercent) + "%");
|
mCpuUsage.setText(new DecimalFormat("0.00").format(info.cpuPercent) + "%");
|
||||||
mRamUsage.setText(RestApi.readableFileSize(mActivity, info.sys));
|
mRamUsage.setText(RestApi.readableFileSize(mActivity, info.sys));
|
||||||
if (info.extAnnounceConnected == info.extAnnounceTotal) {
|
|
||||||
mAnnounceServer.setText(android.R.string.ok);
|
|
||||||
mAnnounceServer.setTextColor(getResources().getColor(R.color.text_green));
|
|
||||||
} else {
|
|
||||||
mAnnounceServer.setText(Integer.toString(info.extAnnounceConnected) + "/" +
|
mAnnounceServer.setText(Integer.toString(info.extAnnounceConnected) + "/" +
|
||||||
Integer.toString(info.extAnnounceTotal));
|
Integer.toString(info.extAnnounceTotal));
|
||||||
|
if (info.extAnnounceConnected > 0) {
|
||||||
|
mAnnounceServer.setTextColor(getResources().getColor(R.color.text_green));
|
||||||
|
} else {
|
||||||
mAnnounceServer.setTextColor(getResources().getColor(R.color.text_red));
|
mAnnounceServer.setTextColor(getResources().getColor(R.color.text_red));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue