mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Auto merge of #21405 - paulrouget:suspend, r=jdm
Behave properly when app is suspended Fix #21329 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21405) <!-- Reviewable:end -->
This commit is contained in:
commit
e855973e2b
7 changed files with 69 additions and 9 deletions
|
@ -151,4 +151,15 @@ public class MainActivity extends Activity implements Servo.Client {
|
|||
mFwdButton.setEnabled(canGoForward);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
mServoView.onPause();
|
||||
super.onPause();
|
||||
}
|
||||
@Override
|
||||
public void onResume() {
|
||||
mServoView.onResume();
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue