Closed Navid200 closed 5 months ago
This is the result after this PR:
I think this will break the collector status which is where you see things like Sensor Expired etc. Is the problem actual something to do with the layout_width being 0dp? You can prototype the change by making the android:text field not observable and just replacing with the placeholder text while you debug the layout.
This isn't changing the collector status. It's only changing how much room on screen is allocated to it. I have tested this.
I can only speculate that the space is evenly divided between sensor status and sensor expiry since each is given the same weight. With Android 6, when one was empty, it did not occupy any space. With 7, it seems like this has changed and even though it is empty, it is till given half of the space.
I have changed the weight and have given 1% of the shared space to collector status and 99% of the space to sensor expiry.
So how does it look when both are displayed?
OK,
I now understand. I am embarassed to say I don 't know hot to show anything as collector status on home screen.
How can I do that so that I can properly test this?
See my comment 7 mins ago which explains how to prototype that for testing
Under normal operating conditions, when will both of these two fields be occupied? Warmup?
The following images show the result after the latest update to this PR.
The following shows a test where I have forced the collector status to also be visible at the same time as sensor expiry is.
Thanks for the review and catching my error.
This is what this PR shows after just starting a new G7.
The following images show what the sensor expiry looks like on May 28 and May 29, 2024 releases respectively.
The change of the Android target has affected the behavior of linear layout and caused the sensor expiry note to wrap. I am sorry I missed this change in my tests of Android 15 upgrade.
This issue has been reported here: https://github.com/NightscoutFoundation/xDrip/discussions/3495
My take is that Android 6 gave no space to an item if it was invisible. But, it seems Android 7 dedicates space to it even if it is invisible. I am not sure what the purpose of collector status is on the home shelf. This PR gives 99% of the space to sensor expiry and 1% to collector status. The result is that as long as the collector status is invisible (empty), it will be effectively taking no space and the final result will be as it was before upgrade to Android 15.