-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fixes #3432: Use alt-with-value from <oppia-noninteractive-image> in RichText #4669
Fixes #3432: Use alt-with-value from <oppia-noninteractive-image> in RichText #4669
Conversation
As discussed, this requires further debugging by you, correct @vrajdesai78? Sending it back to you until the solution is fully working. Also, should this be marked as a draft since it's not yet finished? |
Yes we can mark it as draft PR |
Not sure why its working when the app is coming from background but maybe log all the important information which is responsible for displaying the item-selection-interaction and from that first try to understand what is different. For example, |
@rt4914 I have tried to investigate lifecycle methods like onResume and onStop which are getting called when we keep our app in background and again in foreground. Suprisingly, I haven't found any such method's overriding (onResume, onStop and onPause) in our current codebase. Can you help suggest me some next steps how can I investigate this issue. |
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
…github.com/vrajdesai78/oppia-android into Accessibility-support-for-rich-text-images
@BenHenning can you PTAL. I have solve the issue of loading images in SelectionInteractionView. Actually, there we were calling View.width { ... } which is creating the problem, so now I am calculating the width directly by calling View.width. Also, update the video in the description with the latest code changes. |
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
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.
@vrajdesai78 LGTM, Just check ben's comment, in that PR I have mentioned how to test that bug so please follow those steps and create a video too displaying that the current change does not re-surface that issue.
…github.com/vrajdesai78/oppia-android into Accessibility-support-for-rich-text-images
@BenHenning can you PTAL. I have replied to all of your comments and also mentioned why this solution works. Thanks |
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 @vrajdesai78. Just a bit of work needed left on the UrlImageParser comment, but otherwise the PR LGTM.
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
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 @vrajdesai78 just had a few nits--PTAL.
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/image/UrlImageParser.kt
Outdated
Show resolved
Hide resolved
…mageParser.kt Co-authored-by: Ben Henning <henning.benmax@gmail.com>
…mageParser.kt Co-authored-by: Ben Henning <henning.benmax@gmail.com>
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 @vrajdesai78--the PR LGTM. Also, please make sure not to resolve revewiers' comments (since it makes it easier to then lose these comments).
@BenHenning fixed nit changes |
Unassigning @BenHenning since they have already approved the PR. |
Unassigning @vrajdesai78 since a re-review was requested. @vrajdesai78, please make sure you have addressed all review comments. Thanks! |
@BenHenning @rt4914 can you re-run CI checks, it failed due to connection timed out |
Explanation
Fixes #3432: Created a
handleContentDescription
function in CustomHtmlContentHandler which is further override in ImageTagHandler. With current approach, I am setting up text (content description text from alt-with-value) to image.Essential Checklist
Demo Video
rich-text.mp4