(String msg)
| 124 | } |
| 125 | |
| 126 | private void setAutoAway(String msg) { |
| 127 | synchronized(this) { |
| 128 | int status = sd.roster.myStatus; |
| 129 | if (status == Presence.PRESENCE_ONLINE || status == Presence.PRESENCE_CHAT) { |
| 130 | prevStatus = status; |
| 131 | isAwaySet = true; |
| 132 | if (Config.autoAwayType != Config.AWAY_MESSAGE) { |
| 133 | sd.roster.sendPresence(Presence.PRESENCE_AWAY, msg); |
| 134 | } else { |
| 135 | ExtendedStatus es = StatusList.getInstance().getStatus(Presence.PRESENCE_AWAY); |
| 136 | sd.roster.sendPresence(Presence.PRESENCE_AWAY, es.getMessage()); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | private void setAutoXa(String msg) { |
| 143 | synchronized(this) { |
no test coverage detected