-
Notifications
You must be signed in to change notification settings - Fork 4
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
ANDROID-15197 fix headlineVisible #385
Conversation
📱 New catalog for testing generated: Download |
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.
Good catch 😉
📱 New catalog for testing generated: Download |
library/src/main/java/com/telefonica/mistica/list/ListRowView.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Fernando García Lidón <[email protected]>
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! 🙏🏼
I've just added a comment about my suggestion above: #385 (comment)
📱 New catalog for testing generated: Download |
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.
🐛
📱 New catalog for testing generated: Download |
[![Version](https://maven-badges.herokuapp.com/maven-central/com.telefonica/mistica/badge.png)](https://search.maven.org/artifact/com.telefonica/mistica) | ||
[![Version](https://maven-badges.herokuapp.com/maven-central/com.telefonica/mistica/badge.png)](https://central.sonatype.com/artifact/com.telefonica/mistica?smo=true) |
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.
what about this @jeprubio ?
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.
Lint checker was failing all the time with https://github.com/Telefonica/mistica-android/actions/runs/10923943308/job/30322239259
- [403] https://search.maven.org/artifact/com.telefonica/mistica | Failed: Network error: Forbidden
If you use that url ( https://search.maven.org/artifact/com.telefonica/mistica ) in a browser it redirects to https://central.sonatype.com/artifact/com.telefonica/mistica?smo=true
🥅 What's the goal?
Date is not displayed on inbox notifications.
🚧 How do we do it?
Finding the bug:
The bug was introduced in this PR: https://github.com/Telefonica/mistica-android/pull/376/files#diff-a8f6455fce309bed5bb59e144ed9405f3ee9d2318b63e9a083b16a326cd8ac0c
headlineVisible was assigned with a default value according to currentHeadlineLayoutRes != HEADLINE_NONE but currentHeadlineLayoutRes was assigned after that.
Reordering the headlineVisible check after setHeadlineLayout() is done and currentHeadlineLayoutRes is set.
☑️ Checks
🧪 How can I test this?