Skip to content

Commit 7216f47

Browse files
committed
2 parents 5776b4f + 6084647 commit 7216f47

File tree

8 files changed

+13
-28
lines changed

8 files changed

+13
-28
lines changed

app/src/main/java/com/eveningoutpost/dexdrip/services/UiBasedCollector.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public class UiBasedCollector extends NotificationListenerService {
9393
coOptedPackages.add("com.camdiab.fx_alert.mgdl");
9494
coOptedPackages.add("com.camdiab.fx_alert.hx.mmoll");
9595
coOptedPackages.add("com.camdiab.fx_alert.hx.mgdl");
96+
coOptedPackages.add("com.camdiab.fx_alert.mmoll.ca");
9697
coOptedPackages.add("com.medtronic.diabetes.guardian");
9798
coOptedPackages.add("com.medtronic.diabetes.guardianconnect");
9899
coOptedPackages.add("com.medtronic.diabetes.guardianconnect.us");
@@ -108,6 +109,7 @@ public class UiBasedCollector extends NotificationListenerService {
108109
coOptedPackages.add("com.senseonics.eversense365.us");
109110
coOptedPackages.add("com.kakaohealthcare.pasta"); // A Health app for sensors that we already collect from
110111
coOptedPackages.add("com.sinocare.cgm.ce");
112+
coOptedPackages.add("com.sinocare.ican.health.ce");
111113

112114
coOptedPackagesAll.add("com.dexcom.dexcomone");
113115
coOptedPackagesAll.add("com.dexcom.d1plus");
@@ -123,6 +125,7 @@ public class UiBasedCollector extends NotificationListenerService {
123125
coOptedPackagesAll.add("com.senseonics.eversense365.us");
124126
coOptedPackagesAll.add("com.kakaohealthcare.pasta"); // Experiment
125127
coOptedPackagesAll.add("com.sinocare.cgm.ce");
128+
coOptedPackagesAll.add("com.sinocare.ican.health.ce");
126129

127130
companionAppIoBPackages.add("com.insulet.myblue.pdm");
128131

app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/IdempotentMigrations.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ private static void legacySettingsFix() {
158158
Pref.setBoolean("run_G5_ble_tasks_on_uithread", false);
159159
Pref.setBoolean("ob1_initiate_bonding_flag", true);
160160
Pref.setBoolean("store_sensor_location", false);
161+
Pref.setBoolean("using_g6", true);
162+
// TODO Simplify the code everywhere resolving conditionals based on "using_g6" now that it is always true.
161163
}
162164
private static void legacySettingsMoveLanguageFromNoToNb() {
163165
// Check if the user's language preference is set to "no"

app/src/main/java/com/eveningoutpost/dexdrip/utilitymodels/SourceWizard.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,7 @@ public class SourceWizard {
4141
private Tree<Item> root = new Tree<>(new Item(gs(R.string.choose_data_source), gs(R.string.which_system_do_you_use)));
4242

4343
{
44-
Tree<Item> g5g6 = root.addChild(new Item("G4, G5, G6, G7, 1", gs(R.string.which_type_of_device), R.drawable.g5_icon));
45-
{
46-
Tree<Item> g4 = g5g6.addChild(new Item("G4", gs(R.string.what_type_of_g4_bridge_device_do_you_use), R.drawable.g4_icon));
47-
{
48-
Tree<Item> wixel = g4.addChild(new Item(gs(R.string.bluetooth_wixel), gs(R.string.which_software_is_the_wixel_running), R.drawable.wixel_icon));
49-
{
50-
wixel.addChild(new Item(gs(R.string.xbridge_compatible), DexCollectionType.DexbridgeWixel, R.drawable.wixel_icon));
51-
wixel.addChild(new Item(gs(R.string.classic_simple), DexCollectionType.BluetoothWixel, R.drawable.wixel_icon));
52-
}
53-
54-
g4.addChild(new Item(gs(R.string.g4_share_receiver), DexCollectionType.DexcomShare, R.drawable.g4_share_icon));
55-
g4.addChild(new Item(gs(R.string.parakeet_wifi), DexCollectionType.WifiWixel, R.drawable.jamorham_parakeet_marker));
56-
}
57-
g5g6.addChild(new Item("G5", DexCollectionType.DexcomG5, R.drawable.g5_icon));
58-
g5g6.addChild(new Item("G6, G7, 1", DexCollectionType.DexcomG6, R.drawable.g6_icon));
59-
}
44+
root.addChild(new Item("Dex", DexCollectionType.DexcomG6, R.drawable.dex_icon));
6045

6146
Tree<Item> libre = root.addChild(new Item(gs(R.string.libre), gs(R.string.what_type_of_libre_bridge_device_do_you_use), R.drawable.libre_icon_image));
6247
{
24.1 KB
Loading

app/src/main/res/layout/activity_system_status.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@
231231
android:id="@+id/restart_collection_service"
232232
style="?android:attr/buttonStyleSmall"
233233
android:layout_width="wrap_content"
234-
android:layout_height="wrap_content"
234+
android:layout_height="match_parent"
235235
android:text="@string/restart_collector" />
236236

237237
<Button
238238
android:id="@+id/forget_device"
239239
app:showIfTrue="@{ms.bluetooth()}"
240240
style="?android:attr/buttonStyleSmall"
241241
android:layout_width="wrap_content"
242-
android:layout_height="wrap_content"
242+
android:layout_height="match_parent"
243243
android:text="@string/forget_device" />
244244
</LinearLayout>
245245

app/src/main/res/values/arrays.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<item>Wifi Wixel / Parakeet</item>
77
<item>Wifi Wixel + BT Wixel</item>
88
<item>Wifi Wixel + xBridge Wixel</item>
9-
<item>G6/G7/1/1+ Transmitter</item>
9+
<item>Dex</item>
1010
<item>Libre Bluetooth</item>
1111
<item>Libre Bluetooth + wifi</item>
1212
<item>Libre wifi</item>

app/src/main/res/values/strings.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,8 +1414,8 @@
14141414
<string name="title_ob1_minimize_scanning">Minimize Scanning</string>
14151415
<string name="summary_ob1_avoid_scanning">Avoid scanning as much as possible (reduces battery usage further)</string>
14161416
<string name="title_ob1_avoid_scanning">Avoid Scanning</string>
1417-
<string name="summary_using_g6">I am using a G6, G7, Dexcom 1 or One+ Sensor</string>
1418-
<string name="title_using_g6">G6/G7/Dex1/One+ Support</string>
1417+
<string name="summary_using_g6">I am using a Dex Sensor</string>
1418+
<string name="title_using_g6">Dex Support</string>
14191419
<string name="summary_ob1_g5_allow_resetbond">OB1 collector can unbond if it thinks the encryption has failed. If you get problems with it unpairing then disable this option. If you then totally lose connection, make sure this is enabled.</string>
14201420
<string name="title_ob1_g5_allow_resetbond">Allow OB1 unbonding</string>
14211421
<string name="summary_ob1_initiate_bonding_flag">OB1 collector can initiate bonding.</string>
@@ -1433,8 +1433,8 @@
14331433
<string name="title_xdrip_plus_graph_display_settings">Graph Settings</string>
14341434
<string name="summary_show_basal_line">Show TBR information from external status</string>
14351435
<string name="title_show_basal_line">Show Basal TBR</string>
1436-
<string name="summary_show_g_prediction">Show G6/G7 predictive glucose dots</string>
1437-
<string name="title_show_g_prediction">G6/G7 Prediction</string>
1436+
<string name="summary_show_g_prediction">Show Dex predictive glucose dots</string>
1437+
<string name="title_show_g_prediction">Dex Prediction</string>
14381438
<string name="summary_show_smb_icons">Declutter graph with treatment icons for small boluses</string>
14391439
<string name="title_show_smb_icons">Show micro bolus icons</string>
14401440
<string name="summary_show_medtrum_secondary">Show alternate glucose dots</string>

app/src/main/res/xml/pref_data_source.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,6 @@
389389
android:key="ob1_avoid_scanning"
390390
android:summary="@string/summary_ob1_avoid_scanning"
391391
android:title="@string/title_ob1_avoid_scanning" />
392-
<CheckBoxPreference
393-
android:defaultValue="false"
394-
android:key="using_g6"
395-
android:summary="@string/summary_using_g6"
396-
android:title="@string/title_using_g6" />
397392
<CheckBoxPreference
398393
android:defaultValue="false"
399394
android:key="ob1_g5_allow_resetbond"

0 commit comments

Comments
 (0)