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:
bors-servo 2018-08-15 02:07:05 -04:00 committed by GitHub
commit e855973e2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 69 additions and 9 deletions

View file

@ -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();
}
}