update UI on rebind of service
This commit is contained in:
parent
c68ce2ce1e
commit
4673f04f8b
|
@ -594,6 +594,7 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
torStatus = -1;
|
||||||
updateStatus ("");
|
updateStatus ("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1095,6 +1096,9 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
|
||||||
private ServiceConnection mConnection = new ServiceConnection() {
|
private ServiceConnection mConnection = new ServiceConnection() {
|
||||||
public void onServiceConnected(ComponentName className,
|
public void onServiceConnected(ComponentName className,
|
||||||
IBinder service) {
|
IBinder service) {
|
||||||
|
|
||||||
|
mIsBound = true;
|
||||||
|
|
||||||
// This is called when the connection with the service has been
|
// This is called when the connection with the service has been
|
||||||
// established, giving us the service object we can use to
|
// established, giving us the service object we can use to
|
||||||
// interact with the service. We are communicating with our
|
// interact with the service. We are communicating with our
|
||||||
|
@ -1151,7 +1155,7 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
|
||||||
bindService(mTorService,
|
bindService(mTorService,
|
||||||
mConnection, Context.BIND_AUTO_CREATE);
|
mConnection, Context.BIND_AUTO_CREATE);
|
||||||
|
|
||||||
mIsBound = true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue