-
Notifications
You must be signed in to change notification settings - Fork 804
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
refactor range select in oscilloscope #2552
Conversation
Build successful. APKs to test: https://github.com/fossasia/pslab-android/actions/runs/11670470293/artifacts/2142682113 |
@AsCress: In #2551 you mentioned, that the auto-scale-feature may have problems too. I think it only changes the scale for the left Y-axis. Is that correct? I have added two comments which contain TODO and your name. I am not sure if what I have done there is correct and it would be great if you could take an extra close look there. Static code analysis fails due to high complexity in one of the Fragments. |
Reviewer's Guide by SourceryThis pull request refactors the range select functionality in the oscilloscope feature. The main changes involve introducing a new File-Level Changes
Tips
|
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.
Hey @marcnause - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
This PR breaks Fourier Transform in Data Analysis screen of the Oscilloscope. Therefore I will change it to WIP. |
Fourier Transform works again! @AsCress, could you please check if the oscilloscope still works as expected for you? |
@marcnause This is a fantastic PR ! The idea to clean the code by refactoring it into a different file is an excellent one ! |
@AsCress thank you for your review! Unfortunately, you don't seem to have write access yet and I am not allowed to review your changes since I started the PR. I guess we need either @CloudyPadmal or @mariobehling to approve. 👀 Note: Static code analysis fails due to high complexity in a method I touched, but complexity has been high before that already. |
@marcnause Yes that's correct :)) |
a76106e
to
59bdbc7
Compare
@marcnause Can you confirm if this issue still exists? Strangely, I wasn't able to reproduce this on my device today 😕. |
5bdc858
to
4dcb2b5
Compare
The issue still exists, I was able to reproduce it with the APK from this PR and 2 PSLab boards. |
@marcnause I see. This issue seems to be more device-specific as I can reproduce this on some devices that I have and not on others. |
I have created a new issue (#2567) and will merge the code in this PR. |
4dcb2b5
to
7e0fc17
Compare
Fixes #2099
Changes
Checklist:
strings.xml
,dimens.xml
andcolors.xml
without hard coding any value.strings.xml
,dimens.xml
orcolors.xml
.Summary by Sourcery
Refactor the oscilloscope's range selection by encapsulating scale values in a new class and optimizing scale updates to occur only when necessary. This improves code structure and performance.
Enhancements: