forked from jens/Automation
cosmetics
This commit is contained in:
parent
475c1719d7
commit
a0910e620f
@ -19,14 +19,13 @@ import java.util.ArrayList;
|
|||||||
|
|
||||||
public class BatteryReceiver extends BroadcastReceiver implements AutomationListenerInterface
|
public class BatteryReceiver extends BroadcastReceiver implements AutomationListenerInterface
|
||||||
{
|
{
|
||||||
private static int batteryLevel = -1; // initialize with a better value than this
|
|
||||||
public static AutomationService automationServiceRef = null;
|
public static AutomationService automationServiceRef = null;
|
||||||
private static boolean usbHostConnected = false;
|
static int batteryLevel = -1; // initialize with a better value than this
|
||||||
|
static boolean usbHostConnected = false;
|
||||||
private static boolean batteryReceiverActive = false;
|
static boolean batteryReceiverActive = false;
|
||||||
private static IntentFilter batteryIntentFilter = null;
|
static IntentFilter batteryIntentFilter = null;
|
||||||
private static Intent batteryStatus = null;
|
static Intent batteryStatus = null;
|
||||||
private static BroadcastReceiver batteryInfoReceiverInstance = null;
|
static BroadcastReceiver batteryInfoReceiverInstance = null;
|
||||||
|
|
||||||
public static void startBatteryReceiver(final AutomationService automationServiceRef)
|
public static void startBatteryReceiver(final AutomationService automationServiceRef)
|
||||||
{
|
{
|
||||||
@ -90,7 +89,7 @@ public class BatteryReceiver extends BroadcastReceiver implements AutomationList
|
|||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent)
|
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)
|
if (intent == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user