forked from github/cordova-android
Merge branch 'master' into 4.0.x (receiver context)
This commit is contained in:
commit
4859f8f759
@ -287,7 +287,7 @@ public class CoreAndroid extends CordovaPlugin {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Register the receiver
|
// Register the receiver
|
||||||
this.cordova.getActivity().registerReceiver(this.telephonyReceiver, intentFilter);
|
webView.getContext().registerReceiver(this.telephonyReceiver, intentFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -296,6 +296,6 @@ public class CoreAndroid extends CordovaPlugin {
|
|||||||
*/
|
*/
|
||||||
public void onDestroy()
|
public void onDestroy()
|
||||||
{
|
{
|
||||||
this.cordova.getActivity().unregisterReceiver(this.telephonyReceiver);
|
webView.getContext().unregisterReceiver(this.telephonyReceiver);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user