mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Updated PowerManagementPlugin to phonegap 0.9.6 (which seems to use a
different base class...)
This commit is contained in:
@@ -121,19 +121,19 @@ public class PowerManagementPlugin extends Plugin {
|
||||
* Make sure any wakelock is released if the app goes into pause
|
||||
*/
|
||||
@Override
|
||||
public void onPause() {
|
||||
public void onPause(boolean multitasking) {
|
||||
if( this.wakeLock != null ) this.wakeLock.release();
|
||||
|
||||
super.onPause();
|
||||
|
||||
super.onPause(multitasking);
|
||||
}
|
||||
|
||||
/**
|
||||
* Make sure any wakelock is acquired again once we resume
|
||||
*/
|
||||
@Override
|
||||
public void onResume() {
|
||||
public void onResume(boolean multitasking) {
|
||||
if( this.wakeLock != null ) this.wakeLock.acquire();
|
||||
|
||||
super.onResume();
|
||||
|
||||
super.onResume(multitasking);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user