From f885059b94473af089f2fdd99e79c6aa0f62bd07 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Tue, 8 Apr 2014 15:46:10 -0400 Subject: [PATCH] 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 c84dcedd..f28328d8 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)