[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] update UI on rebind of service
commit 4673f04f8b0d63e7f0945d963a0d96e88a1087de
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date: Tue Apr 15 00:24:01 2014 -0400
update UI on rebind of service
---
src/org/torproject/android/Orbot.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java
index 9bd504b..43a797d 100644
--- a/src/org/torproject/android/Orbot.java
+++ b/src/org/torproject/android/Orbot.java
@@ -594,6 +594,7 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
}
+ torStatus = -1;
updateStatus ("");
}
@@ -1095,6 +1096,9 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
private ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className,
IBinder service) {
+
+ mIsBound = true;
+
// This is called when the connection with the service has been
// established, giving us the service object we can use to
// interact with the service. We are communicating with our
@@ -1151,7 +1155,7 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
bindService(mTorService,
mConnection, Context.BIND_AUTO_CREATE);
- mIsBound = true;
+
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits