whenever an Activity resumes and tor is enabled, request it start

This makes sure that Orbot is running when the user expects it to be. If
NewPipe is configured to use Tor, then going to a NewPipe screen should
ensure Tor is running.
This commit is contained in:
Hans-Christoph Steiner 2016-01-01 23:04:29 +01:00
parent d3879a0398
commit 5663e543a4
4 changed files with 29 additions and 1 deletions

View file

@ -187,6 +187,12 @@ public class PlayVideoActivity extends AppCompatActivity {
videoView.pause();
}
@Override
public void onResume() {
super.onResume();
App.checkStartTor(this);
}
@Override
protected void onDestroy() {
super.onDestroy();