From e6ce35485af2d46c591543cf1bbff2bd63e1e113 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Wed, 19 Jul 2017 16:09:34 +0200 Subject: [PATCH] nsclient remove debug data that puts stress on the broadcast system 3 --- .../NSClientInternal/broadcasts/BroadcastDeviceStatus.java | 7 ------- .../plugins/NSClientInternal/broadcasts/BroadcastSgvs.java | 7 ------- 2 files changed, 14 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastDeviceStatus.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastDeviceStatus.java index 4cad77df11..9053c6becb 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastDeviceStatus.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastDeviceStatus.java @@ -27,13 +27,6 @@ public class BroadcastDeviceStatus { intent.putExtras(bundle); intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); context.sendBroadcast(intent); - try { - List x = context.getPackageManager().queryBroadcastReceivers(intent, 0); - - log.debug("DEVICESTATUS " + x.size() + " receivers"); - } catch (Exception e){ - //for testing - } } public static void handleNewDeviceStatus(JSONArray statuses, Context context, boolean isDelta) { diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastSgvs.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastSgvs.java index 56350080ef..29e2031869 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastSgvs.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastSgvs.java @@ -32,13 +32,6 @@ public class BroadcastSgvs { intent.putExtras(bundle); intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); context.sendBroadcast(intent); - try { - List x = context.getPackageManager().queryBroadcastReceivers(intent, 0); - - log.debug("SGV " + x.size() + " receivers"); - } catch (Exception e){ - //for testing - } } public static void handleNewSgv(JSONArray sgvs, Context context, boolean isDelta) {