mirror of https://github.com/BOINC/boinc.git
android: show rpc backup message in Projects tab only in advanced mode.
This commit is contained in:
parent
d47d4954ff
commit
0630e3d5a0
|
@ -124,6 +124,8 @@ public class ProjectsListAdapter extends ArrayAdapter<ProjectData> {
|
|||
appendToStatus(sb, activity.getResources().getString(R.string.projects_status_trickleuppending));
|
||||
}
|
||||
|
||||
// show rpc backoff only in advanced mode
|
||||
if(Monitor.getAppPrefs().getShowAdvanced()) {
|
||||
Calendar minRPCTime = Calendar.getInstance();
|
||||
Calendar now = Calendar.getInstance();
|
||||
minRPCTime.setTimeInMillis((long)project.min_rpc_time*1000);
|
||||
|
@ -134,6 +136,7 @@ public class ProjectsListAdapter extends ArrayAdapter<ProjectData> {
|
|||
DateUtils.formatElapsedTime((minRPCTime.getTimeInMillis() - now.getTimeInMillis()) / 1000)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue