-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Select where to show Widget on AOD #3153
Conversation
Thanks |
Would you please add a screenshot showing the new settings page as well as another showing the page including the setting that will take you to the new page? |
done |
This is really nice. Looking forward to testing it tomorrow. Thanks |
@Der-Schubi I'm excited about this too, it will eliminate the biggest and possibly only annoyance I experience with xDrip. Will the number not bounce around if two checkboxes are checked as shown in your screenshot? |
No, its like before my change, but the unchecked parts are avoided. |
Thanks for the reply, maybe someday we can have an option for a static location like that used on the number wall lock screen configuration. Your work is still a huge improvement for me. |
It's good that selecting all or deselecting all makes it behave as it does now. I will cover this in the guide. I have Pixel 6a. I have disabled top and bottom center. It avoids the clock at the top and the fingerprint sensor at the bottom center. It is nice. Let's wait for Jamorham's review. |
Am I just imagining? Or, does this increase the widget's brightness? |
No, but the other one does (#3158). |
@jamorham When you get a chance, please tell us what you may not like about this. Or, what do you think about it? |
Unless you have a concern about this, this should also be merged. |
@jamorham Any thoughts? |
f31d416
to
a96921e
Compare
Hi, this looks good and like it should work but the AOD stuff is a bit of a nightmare in that it behaves differently on different devices but additional controls like this have a good chance of improving that compatibility but you have to be very careful not to make assumptions about devices and I have found overall compatibility with AOD has been getting harder so I am very interested in what testing has been done with this feature so far in terms of different devices tested? |
Hi! But I doubt this code can make things worse, as it just narrows down the usable area for the widget. |
I would love to test this on my Google Pixel 7 XL, if there is an APK available. |
Hi, I think unit tests are failing. I selected to re-run the test but if they are still failing we need to determine why and whether the specification is still being met or if something else has happened. |
I changed the tests in this commit: a96921e |
@Der-Schubi Information is coming tomorrow. |
99c4707
to
a96921e
Compare
@Navid200 Up and running again. It was the lombok plugin. Thanks! |
Since there have been changes since I last tested it, I wanted to test it again. I don't know why I cannot find where this is defined: |
@Der-Schubi I get nervous when failing tests are removed in case it is a regression. Can you explain what happened with that method being removed? thanks |
@jamorham There were two functions here. findRandomAvailablePositionWithFailSafe called a second one, named findRandomAvailablePosition. The second one failed with -1 if no free position was found, findRandomAvailablePositionWithFailSafe then returned a random position regardless if free or not. @Navid200 Looks totally unrelated too me?! Maybe a merge error on your side? Any news on this? |
Hi, it seems that the unit tests are failing, can you recheck. It reports failed on |
@Der-Schubi I hope you get a chance to fix these unit tests so we can proceed to merge if all issues are resolved. thanks |
@Der-Schubi please let me know if you get any time to look at this as I would like to get it merged. Thanks |
@jamorham Sorry, I did look into it, but could not get the unit tests to fail on my end. They always pass. So I don't really know whats the problem here. |
I will attempt to build this again and see if I can figure out why it failed for me. May be it is related. |
Change of plans: I have a fork. Inside it, I have a branch I have called orig. My orig branch is identical to the official repository branch. I never edit it. When I want to create a new PR, I first go to my repository and to the orig branch and sync it. That pulls in the latest from the official master branch, which is the latest Nightly, into my orig branch. Then, I go to the commits in my orig branch, and select that last commit. From that commit, I create a new branch and call it something to let me know what it is. I use a date and I have a log file that shows me what each one of my branches contains. Then, in Android Studio, I import from GitHub and import from my fork into the same title as my new branch. I then go ahead and work on my project in Android Studio and make the changes I need and do all my tests. After everything works, I push. This will edit my corresponding GitHub branch from Android Studio. I then go to my GitHub and open a PR from the updated branch. I am sorry I don't mean to offend you. This is the only way I know we can figure out why we experience different things. What I suspect is that you have some additional edits in your Android Studio that is not pushed into your PR. |
@Navid200 |
I was able to compile your submission with no problem. May be the problem is that your PR is based on an old release and you should rebase it to see everything that happens when it is applied to the current master. |
When I rebased my version of your PR, I got errors due to mismatches in the strings files both English and German. |
I'll do a rebase tomorrow morning. |
4a9b033
to
e9e8031
Compare
I am testing this now. There is no collision with the latest Nightly any more. Thanks for fixing. And it looks good. Please leave it as is. Please don't increase the number of regions or the orientation. This is good as is. |
@Der-Schubi There is still a failing unit test in |
I was able to run them, but today I tried again and got the same exception. After a "Rebuild Project" I'm able to run the tests without problems again. Cloud this be a cache issue? |
@Der-Schubi This is a real question. I don't know the answer. |
OK, I had a closer look. The NullPointerException is thrown in line 84 of BlockFinder.java, which is reading the settings: useTop = Pref.getBooleanDefaultFalse("aod_use_top"); Edit: |
After the last change you made, the local tests pass for me. |
Hello, new user here. If/when this is merged will it first appear on the nightly channel? Love the AOD numberwall and would love to see this refinement incorporated. Thanks. |
Yes @jcarrollpe, this will be included in the first nightly build after the merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all your work on this
Works a treat. Thanks everyone! |
See discussion with @Navid200 here: #1625 (comment)