Skip to content

fix: Improve AttendeesFragment #1810

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

Merged
merged 1 commit into from
May 25, 2019
Merged

fix: Improve AttendeesFragment #1810

merged 1 commit into from
May 25, 2019

Conversation

anhanh11001
Copy link
Contributor

@anhanh11001 anhanh11001 commented May 21, 2019

Detail:

  • Set up text change listener to retain the Attendee information in the ViewModel so that it survives screen rotation.
  • Move UI initialization function from ViewModel into Fragment
  • Move variables about logic or information from Fragment from Fragment to ViewModel to survive screen rotation.
  • Break up code in onCreateView to smaller function
  • Remove redundant methods.
  • Improve some wrong naming.

Fixes: #1755

Screenshots for the change:
ezgif-4-cebebebf5154

@anhanh11001 anhanh11001 changed the title WIP - Improve AttendeesFragment fix: Improve AttendeesFragment May 25, 2019
@auto-label auto-label bot added the fix label May 25, 2019
@fossasia fossasia deleted a comment May 25, 2019
@fossasia fossasia deleted a comment May 25, 2019
@fossasia fossasia deleted a comment May 25, 2019
@fossasia fossasia deleted a comment May 25, 2019
@fossasia fossasia deleted a comment May 25, 2019
Detail:
- Set up text change listener to retain the Attendee information in the ViewModel so that it survives screen rotation.
- Move UI initialization function from ViewModel into Fragment
- Move variables about logic or information from Fragment from Fragment to ViewModel to survive screen rotation.
- Remove redundant methods.
- Improve some wrong naming.

Fixes: #1755
@fossasia fossasia deleted a comment May 25, 2019
@anhanh11001
Copy link
Contributor Author

@liveHarshit please review

Copy link
Member

@liveHarshit liveHarshit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any UI related changes?

@anhanh11001
Copy link
Contributor Author

No, the UI still looks the same

@iamareebjamal iamareebjamal merged commit 70ff782 into fossasia:development May 25, 2019
@anhanh11001 anhanh11001 deleted the 1755_attendees_fragment branch June 20, 2019 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refractor AttendeeFragment (multiple problems)
3 participants