mirror of
https://github.com/apache/cordova-android.git
synced 2026-02-10 00:03:01 +08:00
Add onReset to BatteryListener.
This commit is contained in:
@@ -99,6 +99,13 @@ public class BatteryListener extends Plugin {
|
||||
removeBatteryListener();
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop battery receiver.
|
||||
*/
|
||||
public void onReset() {
|
||||
removeBatteryListener();
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop the battery receiver and set it to null.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user