Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic status page session start fix #3750

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading