You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/01/07 21:34:08 UTC
[2/3] git commit: CB-5737 Fix exception on close caused by left over
telephony code from CB-5504
CB-5737 Fix exception on close caused by left over telephony code from CB-5504
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/6b40b60f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/6b40b60f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/6b40b60f
Branch: refs/heads/master
Commit: 6b40b60f7f7aa3c8ed955fbed8add8498b9cb062
Parents: 7a4d8d0
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Jan 7 15:25:09 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Jan 7 15:25:09 2014 -0500
----------------------------------------------------------------------
src/android/Device.java | 15 ---------------
1 file changed, 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/6b40b60f/src/android/Device.java
----------------------------------------------------------------------
diff --git a/src/android/Device.java b/src/android/Device.java
index 603ea37..6aef460 100644
--- a/src/android/Device.java
+++ b/src/android/Device.java
@@ -23,18 +23,12 @@ import java.util.TimeZone;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
-import org.apache.cordova.LOG;
import org.apache.cordova.CordovaInterface;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
import android.provider.Settings;
-import android.telephony.TelephonyManager;
public class Device extends CordovaPlugin {
public static final String TAG = "Device";
@@ -47,8 +41,6 @@ public class Device extends CordovaPlugin {
private static final String AMAZON_PLATFORM = "amazon-fireos";
private static final String AMAZON_DEVICE = "Amazon";
- BroadcastReceiver telephonyReceiver = null;
-
/**
* Constructor.
*/
@@ -91,13 +83,6 @@ public class Device extends CordovaPlugin {
return true;
}
- /**
- * Unregister receiver.
- */
- public void onDestroy() {
- this.cordova.getActivity().unregisterReceiver(this.telephonyReceiver);
- }
-
//--------------------------------------------------------------------------
// LOCAL METHODS
//--------------------------------------------------------------------------