mark TorService methods from EventHandler as overridden
This keeps me from getting confused...
This commit is contained in:
parent
86593df6fb
commit
82f82e1c10
|
@ -1401,35 +1401,28 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
startService(intent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void message(String severity, String msg) {
|
||||
|
||||
|
||||
logNotice(severity + ": " + msg);
|
||||
|
||||
if (msg.indexOf(TOR_CONTROL_PORT_MSG_BOOTSTRAP_DONE)!=-1)
|
||||
{
|
||||
mCurrentStatus = STATUS_ON;
|
||||
sendCallbackStatus(mCurrentStatus);
|
||||
|
||||
|
||||
showToolbarNotification(getString(R.string.status_activated), NOTIFY_ID, R.drawable.ic_stat_tor);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void newDescriptors(List<String> orList) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void orConnStatus(String status, String orName) {
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("orConnStatus (");
|
||||
sb.append(parseNodeName(orName) );
|
||||
|
@ -1437,10 +1430,9 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
sb.append(status);
|
||||
|
||||
debug(sb.toString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void streamStatus(String status, String streamID, String target) {
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
@ -1450,10 +1442,9 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
sb.append(status);
|
||||
|
||||
logNotice(sb.toString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void unrecognized(String type, String msg) {
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
@ -1463,10 +1454,9 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
sb.append(msg);
|
||||
|
||||
logNotice(sb.toString());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void bandwidthUsed(long read, long written) {
|
||||
|
||||
if (read != lastRead || written != lastWritten)
|
||||
|
@ -1488,15 +1478,12 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
|
||||
mTotalTrafficWritten += written;
|
||||
mTotalTrafficRead += read;
|
||||
|
||||
|
||||
}
|
||||
|
||||
lastWritten = written;
|
||||
lastRead = read;
|
||||
|
||||
sendCallbackStatusMessage(lastWritten, lastRead, mTotalTrafficWritten, mTotalTrafficRead);
|
||||
|
||||
}
|
||||
|
||||
private String formatCount(long count) {
|
||||
|
@ -1516,7 +1503,6 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
|
|||
|
||||
public void circuitStatus(String status, String circID, String path) {
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Circuit (");
|
||||
sb.append((circID));
|
||||
|
|
Loading…
Reference in New Issue