Skip to content

Commit

Permalink
Classic status page session start fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid200 committed Nov 2, 2024
1 parent d14910c commit db2a310
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public interface MicroStatus {

boolean xmitterBattery();

boolean sessionStartTime(); // Show session start time on the classic status page only when true (not G7)

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public boolean bluetooth() { // Dexcom with Bluetooth except G7
return DexCollectionType.hasBluetooth() && !getBestCollectorHardwareName().equals("G7");
}

@Override
public boolean sessionStartTime() { // This is false only if we are using G7
return !getBestCollectorHardwareName().equals("G7");
}

@Override
public boolean xmitterBattery() {
return DexCollectionType.usesClassicTransmitterBattery();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_system_status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

<LinearLayout
android:id="@+id/layout_sensor"
app:showIfTrue="@{ms.bluetooth()}"
app:showIfTrue="@{ms.sessionStartTime()}"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
Expand Down

0 comments on commit db2a310

Please sign in to comment.