From a0910e620f3e0d57a71f0a936531ac48aa8e56f1 Mon Sep 17 00:00:00 2001 From: jens Date: Fri, 2 Sep 2022 19:31:00 +0200 Subject: [PATCH] cosmetics --- .../automation2/receivers/BatteryReceiver.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/jens/automation2/receivers/BatteryReceiver.java b/app/src/main/java/com/jens/automation2/receivers/BatteryReceiver.java index cb6e7c2e..8ca58b36 100644 --- a/app/src/main/java/com/jens/automation2/receivers/BatteryReceiver.java +++ b/app/src/main/java/com/jens/automation2/receivers/BatteryReceiver.java @@ -19,14 +19,13 @@ import java.util.ArrayList; public class BatteryReceiver extends BroadcastReceiver implements AutomationListenerInterface { - private static int batteryLevel = -1; // initialize with a better value than this public static AutomationService automationServiceRef = null; - private static boolean usbHostConnected = false; - - private static boolean batteryReceiverActive = false; - private static IntentFilter batteryIntentFilter = null; - private static Intent batteryStatus = null; - private static BroadcastReceiver batteryInfoReceiverInstance = null; + static int batteryLevel = -1; // initialize with a better value than this + static boolean usbHostConnected = false; + static boolean batteryReceiverActive = false; + static IntentFilter batteryIntentFilter = null; + static Intent batteryStatus = null; + static BroadcastReceiver batteryInfoReceiverInstance = null; public static void startBatteryReceiver(final AutomationService automationServiceRef) { @@ -90,7 +89,7 @@ public class BatteryReceiver extends BroadcastReceiver implements AutomationList @Override public void onReceive(Context context, Intent intent) { -// Log.i("Battery", "Some battery event"); + Miscellaneous.logEvent("i", "BatteryReceiver", "Received event " + intent.getAction(), 5); if (intent == null) return;