mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Add onReset to BatteryListener.
This commit is contained in:
parent
8b6c9574df
commit
9318ee30bd
@ -99,6 +99,13 @@ public class BatteryListener extends Plugin {
|
|||||||
removeBatteryListener();
|
removeBatteryListener();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stop battery receiver.
|
||||||
|
*/
|
||||||
|
public void onReset() {
|
||||||
|
removeBatteryListener();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stop the battery receiver and set it to null.
|
* Stop the battery receiver and set it to null.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user