-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fixed Record Audio Waveform not visible #16258 #16372
Conversation
First PR! 🚀 We sincerely appreciate that you have taken the time to propose a change to AnkiDroid! Please have patience with us as we are all volunteers - we will get to this as soon as possible. |
@@ -42,7 +42,7 @@ | |||
<com.ichi2.audio.AudioWaveform | |||
android:id="@+id/audio_waveform_view" | |||
android:layout_width="match_parent" | |||
android:layout_height="300px" | |||
android:layout_height="200px" |
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.
Could you test that with a height using dp
? 200px may make sense for phones, but not on tablets
Thanks!! There was a reason that the audio waveform was hidden in landscape (I believe due to limited vertical space on phones) This doesn't address the issue that the flip from landscape to portrait does not reveal the control |
Forgot to ping, @criticalAY has context for the landscape change hiding the control |
The audio wave form was kept hidden in landscape as the mobile screen don't have that much of space to accommodate both the waveform and the card content, when a user want to record while seeing the content of their card it is difficult if it's visible in landscape |
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! but this is not the solution instead try fixing the original issue
So whats the fix here ? Should i make any further changes ? |
Shall i change px to dp ? |
You will need to fix the behavior mentioned in the issue which is emulator only |
Ok 👌 |
@shalenMathew could you mark this as draft if it's not ready for review? |
I have changed the size of audio waveform to 100dp just notify me if i need to make any more changes |
This is not what I meant, I will repeat what I said, you need to figure out what is the issue that causes the emulator bug and fix that instead of changing the height |
ok , i think it not a bug the waveform disappears coz the logic is set up that way , when the orientation changes the waveform visiblity is set to gone , i think due to limited space of screen on landscape mode the logic is set up that way... I think the logic is works as intended ... Maybe its not a bug |
@shalenMathew first, you need to understand the problem:
The first step is to reproduce the problem in an emulator Then explain what the bug is Then fix the bug in a pull request |
ok now i got it my bad, let me try to fix it |
I am closing this PR as there are no changes here and i dont see any development recently, so the OP can figure out the right solution and get back. |
Purpose / Description
fixing #16258 the issue where audio wave disappears when orientation changes to landscape
Fixes
Approach
issue occurred due Audio Waveform being kept GONE when config changed ,
solved the issue
audio form is now visible even in landscape mode
changed the height of audio wave a bit , to suit in both landscape and potrait mode
How Has This Been Tested?
Screenshot
WhatsApp.Video.2024-05-10.at.11.45.32.PM.mp4
Checklist
Please, go through these checks before submitting the PR.