()
| 56 | reset(); |
| 57 | TimerTask task = new TimerTask() { |
| 58 | public void run() { |
| 59 | if (!sd.roster.isLoggedIn() || (Config.autoAwayType==Config.AWAY_OFF)) { |
| 60 | return; |
| 61 | } |
| 62 | |
| 63 | long timeAwayRemained = System.currentTimeMillis() - timeAwayEvent; |
| 64 | if (!isAwaySet && timeAwayRemained > 0) { |
| 65 | setAutoAway(SR.MS_AUTO_AWAY); |
| 66 | } |
| 67 | |
| 68 | long timeXaRemained = System.currentTimeMillis() - timeXaEvent; |
| 69 | if (!isXaSet && timeXaRemained > 0) { |
| 70 | setAutoXa(SR.MS_AUTO_XA); |
| 71 | } |
| 72 | } |
| 73 | }; |
| 74 | timer = new Timer(); |
| 75 | timer.schedule(task, 0, TIMER_INTERVAL); |
nothing calls this directly
no test coverage detected