mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
CB-5504: Adding onDestroy to app plugin to deregister telephonyReceiver
This commit is contained in:
@@ -284,4 +284,12 @@ public class App extends CordovaPlugin {
|
||||
this.cordova.getActivity().registerReceiver(this.telephonyReceiver, intentFilter);
|
||||
}
|
||||
|
||||
/*
|
||||
* Unregister the receiver
|
||||
*
|
||||
*/
|
||||
public void onDestroy()
|
||||
{
|
||||
this.cordova.getActivity().unregisterReceiver(this.telephonyReceiver);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user