private static final int NOTIFICATION_ITEM = 541;
private static int last_level = -1;
private static boolean notification_showing = false;
private static int threshold = 20;
private static final int repeat_seconds = 1200;
<BUG>public static void checkBridgeBattery() {

if (!Home.getPreferencesBooleanDefaultFalse("bridge_battery_alerts")) return;
</BUG>
try {

private static final int NOTIFICATION_ITEM = 541;
private static int last_level = -1;
private static boolean notification_showing = false;
private static int threshold = 20;
private static final int repeat_seconds = 1200;
public static boolean checkBridgeBattery() {
boolean lowbattery = false;
if (!Home.getPreferencesBooleanDefaultFalse("bridge_battery_alerts")) return false;
try {
