From aa5776e00b22a9b4c12cea24b6d868dc126da07b Mon Sep 17 00:00:00 2001 From: Keith Uplinger Date: Thu, 2 May 2013 22:38:54 +0000 Subject: [PATCH] Added a change to show the status of the agent in the top menu bar... --- .../src/edu/berkeley/boinc/BOINCActivity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/android/BOINC/src/edu/berkeley/boinc/BOINCActivity.java b/android/BOINC/src/edu/berkeley/boinc/BOINCActivity.java index cd3902f347..07d7244115 100644 --- a/android/BOINC/src/edu/berkeley/boinc/BOINCActivity.java +++ b/android/BOINC/src/edu/berkeley/boinc/BOINCActivity.java @@ -142,6 +142,20 @@ public class BOINCActivity extends TabActivity { try { if(mIsBound) { newStatus = Monitor.getClientStatus().setupStatus; + switch(Monitor.getClientStatus().computingStatus) { + case ClientStatus.COMPUTING_STATUS_COMPUTING: + this.setTitle("BOINC - Running"); + break; + case ClientStatus.COMPUTING_STATUS_IDLE: + this.setTitle("BOINC - Idle"); + break; + case ClientStatus.COMPUTING_STATUS_SUSPENDED: + this.setTitle("BOINC - Suspended"); + break; + default: + this.setTitle("BOINC"); + break; + } if(newStatus != clientSetupStatus) { //only act, when status actually different form old status Log.d(TAG,"determineStatus() client setup status changed! old clientSetupStatus: " + clientSetupStatus + " - new: " + newStatus); clientSetupStatus = newStatus;