You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The group rewards screen will have an incorrect width when animating in, then correct itself once the animation finishes. However, if the content is reloaded for any reason such as pulling up to refresh or putting the app into the background and reopening, the content displays squished against the left side of the screen.
It seems that the element is wrapping the size of the chest icon rather than filling the available width. However, that's just my assumption.
To Reproduce
Have no items in the group rewards screen
Go to the rewards screen
Reload the content in any way (refresh or minimize app)
Expected behavior
The "You don't have any Rewards" component should take up the entire width of the screen.
Screenshots
Smartphone (please complete the following information):
Device: Samsung S22 Ultra
OS: Android 14
App Version: 4.4.1 (8001)
Habitica Username: HypePixel
Additional context
N/A
The text was updated successfully, but these errors were encountered:
I did some more investigating and it seems that the emptyView for some reason isn't matching its parent's height, despite having match_parent for its width. In the "onCreateViewHolder" function, I explicitly set the width of the emptyView to the width of it's parent, which seems to fix the issue. Is there a better way to do this?
Here's the link to the branch with the fix: Fix Code
Layout Inspector when emptyView is not taking up the whole width:
Layout Inspector when emptyView is taking up the whole width:
Describe the bug
The group rewards screen will have an incorrect width when animating in, then correct itself once the animation finishes. However, if the content is reloaded for any reason such as pulling up to refresh or putting the app into the background and reopening, the content displays squished against the left side of the screen.
It seems that the element is wrapping the size of the chest icon rather than filling the available width. However, that's just my assumption.
To Reproduce
Expected behavior
The "You don't have any Rewards" component should take up the entire width of the screen.
Screenshots
Smartphone (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: