re-added startService() call as some devices/OS need it

This commit is contained in:
n8fr8 2012-06-29 12:04:26 -04:00
parent 85963c44e8
commit 318beaabcd
1 changed files with 13 additions and 14 deletions

View File

@ -92,6 +92,9 @@ public class Orbot extends Activity implements TorConstants, OnLongClickListener
imgStatus = (ImageView)findViewById(R.id.imgStatus);
imgStatus.setOnLongClickListener(this);
startService(new Intent(INTENT_TOR_SERVICE));
}
/*
@ -307,12 +310,9 @@ public class Orbot extends Activity implements TorConstants, OnLongClickListener
protected void onResume() {
super.onResume();
setLocale();
// setLocale();
bindService();
// startService(new Intent(INTENT_TOR_SERVICE));
if (getIntent() == null)
return;
@ -393,19 +393,17 @@ public class Orbot extends Activity implements TorConstants, OnLongClickListener
}
}
}
/* (non-Javadoc)
* @see android.app.Activity#onStart()
*/
protected void onStart() {
super.onStart();
updateStatus ("");
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
// TODO Auto-generated method stub
super.onConfigurationChanged(newConfig);
}
/* (non-Javadoc)
* @see android.app.Activity#onStop()
*/
@ -463,6 +461,7 @@ public class Orbot extends Activity implements TorConstants, OnLongClickListener
if (requestCode == 1 && resultCode == 1010 && mService != null)
{
new ProcessSettingsAsyncTask().execute(mService);
setLocale();
}
}