mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
Add onReset to BatteryListener.
This commit is contained in:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user