Handled the dialogs when shifted from review to preview and again to …#20526
Handled the dialogs when shifted from review to preview and again to …#2052622oo1cso56mansoorkhan-cell wants to merge 2 commits intoankidroid:mainfrom
Conversation
|
Hey, a couple of reminders regarding the gsoc / contributor guidelines:
|
|
Should I make the PR once again?? |
|
No, those issues can be taken care of with |
|
Yup I have already gone through the AI policy......All the code is generated soley by myself... |
|
Good, although it does seem over-commented to me. A maintainer will assess it. Please, give them some time; they are quite busy. In the meantime, you may want to make the fixes I mentioned. |
david-allison
left a comment
There was a problem hiding this comment.
This seems to contain some of the same commits as:
Please unmark this as draft when resolved
|
Hi, it looks like the merge commit is still there and the title hasn't been updated; you should try using a semantic commit for the title and message. |
|
I have done the rebase and force push @david-allison you can review my both prs |
|
@david-allison I have resolved the issues by, deleting the the same commit present in #20531 and rebasing , force push...so I kindly request proceed for the merge process for this pr... |
|
This is the same subset of code in your other PR. Closing for the same reason I mentioned in #20531 (comment)
|
|
@david-allison Maybe I have been overthinking the modifications....Maybe I am still not ready for such huge codebases and their coding traits....But it was a great experience....I have learnt the github to the maximum extent during the process..But still, I will try contributing till the end as per your coding traits and modifications. I wont give up. Because My main aim is not to get in GSOC26 or something (cuz I started late (around 1 month back))...Just I want to do something different than the traditional studies and personal projects. Hope u don't mind this comment.As I am still in 2nd year of my B.E. I will do my best |
…the review
Purpose / Description
When adding a gesture/key binding to one of the 4 answer actions, a dialog is supposed to appear to ask the user whether they want the action to also show the answer. When tapping on the "Previews" tab then "Reviews", this dialog doesn't appear.
Fixes
Improve the dialogs in the Controls screen #20504
Approach
setupAnswerCommands() is only called during the initial fragment creation and in onTabSelected(), but it's not being called when switching back to the REVIEWER tab from the PREVIEWER tab.
When you switch from REVIEWER to PREVIEWER, onTabUnselected() removes all preferences after the tab layout. Then when switching back to REVIEWER, onTabSelected() calls addPreferencesFromResource() and setupAnswerCommands(). However, there's a timing issue - the preferences are being recreated but the answer commands setup might not be properly reattached to the new preference instances.
How Has This Been Tested?
java version : java 24
It was tested using physical mobile using wireless debugging
Learning (optional, can help others)
Describe the research stage
Links to blog posts, patterns, libraries or addons used to solve this problem
Control.dialogs.mp4
Checklist
Please, go through these checks before submitting the PR.