mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Behave properly when app is suspended
This commit is contained in:
parent
e051c5880e
commit
ae407e9a65
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