}
final int this_level = Home.getPreferencesInt("bridge_battery", -1);
if ((this_level > 0) && (threshold > 0)) {
if ((this_level < threshold) && (this_level < last_level)) {
if (JoH.pratelimit("bridge-battery-warning", repeat_seconds)) {
<BUG>notification_showing = true;
final PendingIntent pendingIntent = android.app.PendingIntent.getActivity(xdrip.getAppContext(), 0, new Intent(xdrip.getAppContext(), Home.class), android.app.PendingIntent.FLAG_UPDATE_CURRENT);</BUG>
showNotification("Low bridge battery", "Bridge battery dropped to: " + this_level + "%", pendingIntent, NOTIFICATION_ITEM, true, true, false);
}
} else {

}
final int this_level = Home.getPreferencesInt("bridge_battery", -1);
if ((this_level > 0) && (threshold > 0)) {
if ((this_level < threshold) && (this_level < last_level)) {
if (JoH.pratelimit("bridge-battery-warning", repeat_seconds)) {
notification_showing = true;
lowbattery = true;
final PendingIntent pendingIntent = android.app.PendingIntent.getActivity(xdrip.getAppContext(), 0, new Intent(xdrip.getAppContext(), Home.class), android.app.PendingIntent.FLAG_UPDATE_CURRENT);
showNotification("Low bridge battery", "Bridge battery dropped to: " + this_level + "%", pendingIntent, NOTIFICATION_ITEM, true, true, false);
}
} else {
