[tor-commits] [orbot/master] fix problem with UI rotation and screen update
n8fr8 at torproject.org
n8fr8 at torproject.org
Tue Apr 8 20:10:39 UTC 2014
commit f885059b94473af089f2fdd99e79c6aa0f62bd07
Author: Nathan Freitas <nathan at freitas.net>
Date: Tue Apr 8 15:46:10 2014 -0400
fix problem with UI rotation and screen update
---
src/org/torproject/android/Orbot.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java
index c84dced..f28328d 100644
--- a/src/org/torproject/android/Orbot.java
+++ b/src/org/torproject/android/Orbot.java
@@ -3,8 +3,6 @@
package org.torproject.android;
-import static org.torproject.android.TorConstants.TAG;
-
import java.util.Locale;
import org.torproject.android.service.ITorService;
@@ -36,7 +34,6 @@ import android.os.IBinder;
import android.os.Message;
import android.os.RemoteException;
import android.support.v7.app.ActionBarActivity;
-import android.support.v7.view.ActionMode;
import android.text.ClipboardManager;
import android.text.Layout;
import android.text.method.ScrollingMovementMethod;
@@ -785,6 +782,9 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
{
try
{
+ if (torServiceMsg == null || torServiceMsg.length()==0)
+ torStatus = -1; //reset Tor status
+
int newTorStatus = -1;
//if the serivce is bound, query it for the curren status value (int)
More information about the tor-commits
mailing list