1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 19:31:30 +00:00

Merge branch 'Zillode-do-not-scare-ppl'

This commit is contained in:
Felix Ableitner 2015-03-17 22:38:16 +01:00
commit 34bded841d

View file

@ -182,12 +182,11 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
});
mCpuUsage.setText(new DecimalFormat("0.00").format(info.cpuPercent) + "%");
mRamUsage.setText(RestApi.readableFileSize(mActivity, info.sys));
if (info.extAnnounceConnected == info.extAnnounceTotal) {
mAnnounceServer.setText(android.R.string.ok);
mAnnounceServer.setText(Integer.toString(info.extAnnounceConnected) + "/" +
Integer.toString(info.extAnnounceTotal));
if (info.extAnnounceConnected > 0) {
mAnnounceServer.setTextColor(getResources().getColor(R.color.text_green));
} else {
mAnnounceServer.setText(Integer.toString(info.extAnnounceConnected) + "/" +
Integer.toString(info.extAnnounceTotal));
mAnnounceServer.setTextColor(getResources().getColor(R.color.text_red));
}
}