rename TorStarter to IncomingIntentRouter, it handles all Intents

TorStarter does lots of things besides starting Tor
This commit is contained in:
Hans-Christoph Steiner 2015-06-12 14:46:47 -04:00
parent ff04bde300
commit 8f57b42e68
1 changed files with 3 additions and 3 deletions

View File

@ -322,18 +322,18 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
*/
public int onStartCommand(Intent intent, int flags, int startId) {
if (intent != null)
new Thread (new TorStarter(intent)).start();
new Thread (new IncomingIntentRouter(intent)).start();
else
Log.d(TAG, "Got null onStartCommand() intent");
return Service.START_STICKY;
}
private class TorStarter implements Runnable
private class IncomingIntentRouter implements Runnable
{
Intent mIntent;
public TorStarter (Intent intent)
public IncomingIntentRouter (Intent intent)
{
mIntent = intent;
}