-
-
Notifications
You must be signed in to change notification settings - Fork 445
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
Search Text Controller Disposed When Playing/Dismissing A Video #1965
Comments
I reproduced the issue and I will try to work on it |
Hi, I'm able to reproduce this issue in version 0.14.1, Pixel 2 API 32 emulator with GMS. Issue#1
Issue#2
I'm able to fix, Issue#1, but not sure of regressions, still checking. I'm just returning false in MainActivity onMenuItemActionCollapse For Issue#2, looks like onCreateOptionsMenu getting called when PlayerFragment is closed. Still debugging. |
You've found? You literally copied what I've already said up above. You can also reproduce it by playing a different a video (search -> play video -> minimize video -> play a different video) |
Hi @akano12 , You're correct, I've literally copy pasted your issue statement from description. I've just listed them separately based on root cause as per my analysis of the code. This seggeration is basically to help me (and hopefully others) understand and debug the issue. My statement in previous comment was not to claim I've found the issue itself. I hope it's clarified now. I was also able to reproduce playing different video as well but I'm assuming that root cause is same as Issue#2 but haven't thoroughly checked that part. Thanks for pointing it out. Edit: I'm new to contributing in open source code. So if there is any specific lingo I need to use to convey certain updates, then any help or pointers in that direction is appreciated. My intention here is not to offend anyone or claim other's contribution as my own. |
Hey @SajalRG, no worries, everything you did is just fine. I'm happy to see you trying to debug the issues and sharing what you figured out so far is a good idea. There's nothing specifically you need to worry about here, the only limitation is our code of conduct (can be found in the project's root dir) but I doubt you would have done anything differently there anyways. If you're able to fix one or two of the issues (e.g. with what you mentioned above) feel free to create a pull request, so it can be tested by others too to check if it's working and there are no major regressions / drawbacks. |
No worries mate, wasn't trying to be rude anyway. Well, the main pillars of open source code/community are to give credit where it's due (doesn't matter, small opinions or big contributions), and to contribute by whichever things you can do (donations/bug reports/testing and reporting/pull requests..). |
Issue libre-tube#1965: * Search for something * Play the video * Clicking back btn would close the search also Fix: Disable auto close of search in onMenuItemActionCollapse method call. Search will close when search fragment is removed. Known Issues: Search will still close when player fragment is closed.
Hi, For second issue, looks like android issue it got fixed in "androidx.fragment:fragment:1.6.0-alpha07". Currently I'm trying a workaround, will update PR soon. Also found one regression issue with previous PR, have fixed both issues together. Regression Issue:
Here, the navigation bar looks wrong. Edit: Fixed the regression issue as well in same PR |
Steps to reproduce
Expected behavior
Nothing should affect the text controller
Actual behavior
Search controller is disposed
LibreTube version
0.8.0
Android version
12
Other details
Playing or dismissing a video would clear the search text controller and close the search bar.
Screen_Recording_20221121_180645_LibreTube.mp4
Acknowledgements
The text was updated successfully, but these errors were encountered: