Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Mar 27, 2024
2 parents 6667fa6 + a018afb commit efb3322
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ public interface MicroStatus {

boolean xmitterBattery();


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Created by jamorham on 29/09/2017.
*/

import static com.eveningoutpost.dexdrip.utils.DexCollectionType.getBestCollectorHardwareName;

import androidx.databinding.BaseObservable;

import com.eveningoutpost.dexdrip.utils.DexCollectionType;
Expand All @@ -28,12 +30,13 @@ public String gs(String id) {
}

@Override
public boolean bluetooth() {
return DexCollectionType.hasBluetooth();
public boolean bluetooth() { // Dexcom with Bluetooth except G7
return DexCollectionType.hasBluetooth() && !getBestCollectorHardwareName().equals("G7");
}

@Override
public boolean xmitterBattery() {
return DexCollectionType.usesClassicTransmitterBattery();
}

}
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_system_status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@

<Button
android:id="@+id/forget_device"
app:showIfTrue="@{ms.bluetooth()}"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit efb3322

Please sign in to comment.