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:
parent
d3879a0398
commit
5663e543a4
4 changed files with 29 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue