don't manually call onDestroy, just call finish()
This commit is contained in:
parent
d1b08ee4e8
commit
a0b32ba068
|
@ -432,7 +432,8 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
|
||||||
//terminology but also making sure there are clear distinctions in control
|
//terminology but also making sure there are clear distinctions in control
|
||||||
stopTor();
|
stopTor();
|
||||||
|
|
||||||
onDestroy();
|
//onDestroy();
|
||||||
|
|
||||||
|
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.w(TAG, e);
|
Log.w(TAG, e);
|
||||||
|
@ -448,11 +449,17 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
|
||||||
* @see android.app.Activity#onPause()
|
* @see android.app.Activity#onPause()
|
||||||
*/
|
*/
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
|
try
|
||||||
|
{
|
||||||
super.onPause();
|
super.onPause();
|
||||||
|
|
||||||
if (aDialog != null)
|
if (aDialog != null)
|
||||||
aDialog.dismiss();
|
aDialog.dismiss();
|
||||||
|
}
|
||||||
|
catch (IllegalStateException ise)
|
||||||
|
{
|
||||||
|
//can happen on exit/shutdown
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void doTorCheck ()
|
private void doTorCheck ()
|
||||||
|
|
Loading…
Reference in New Issue