make sure transproxy is renabled when network returns

This commit is contained in:
Nathan Freitas 2014-06-19 10:30:02 -04:00
parent 2eb79a5185
commit 298a01e519
1 changed files with 3 additions and 4 deletions

View File

@ -240,8 +240,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
} }
else else
{ {
mNotifyBuilder.setTicker(""); mNotifyBuilder.setTicker(null); //make sure to clear ticker
//mNotifyBuilder.setLights(Color.GREEN, 5000, 5000);
} }
if (isOngoing) if (isOngoing)
@ -1809,8 +1808,8 @@ public class TorService extends Service implements TorServiceConstants, TorConst
logNotice(context.getString(R.string.network_connectivity_is_good_waking_tor_up_)); logNotice(context.getString(R.string.network_connectivity_is_good_waking_tor_up_));
showToolbarNotification(getString(R.string.status_activated),NOTIFY_ID,R.drawable.ic_stat_tor,prefPersistNotifications); showToolbarNotification(getString(R.string.status_activated),NOTIFY_ID,R.drawable.ic_stat_tor,prefPersistNotifications);
//if (mHasRoot && mEnableTransparentProxy) if (mHasRoot && mEnableTransparentProxy)
//enableTransparentProxy(mTransProxyAll, mTransProxyTethering); enableTransparentProxy(mTransProxyAll, mTransProxyTethering);
} }
} }