Skip to content

Conversation

@liveHarshit
Copy link
Member

@liveHarshit liveHarshit commented Feb 2, 2019

Fixes #997
Fixes #998
Fixes #1047

@liveHarshit liveHarshit changed the title feat: Remove all explicit intents in favor of navigation WIP: feat: Remove all explicit intents in favor of navigation Feb 2, 2019
@liveHarshit liveHarshit changed the title WIP: feat: Remove all explicit intents in favor of navigation feat: Remove all explicit intents in favor of navigation Feb 2, 2019
fun loadTimeAndLocation() {
savedLocation = preference.getString(tokenKey)
savedDate = preference.getString(SearchTimeViewModel.tokenKeyDate)
}
Copy link
Member

Choose a reason for hiding this comment

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

This is not what I meant. We should not be storing transient variables in SharedPreferences. Read about Type Safe Navigation Arguments

Copy link
Member

Choose a reason for hiding this comment

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

@liveHarshit this might help

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

@liveHarshit liveHarshit Feb 2, 2019

Choose a reason for hiding this comment

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

This is not what I meant. We should not be storing transient variables in SharedPreferences. Read about Type Safe Navigation Arguments

Okay, but then how to store user saved location and date without preferences.

Copy link
Member

Choose a reason for hiding this comment

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

Store the location, no issue. Why do you need to store date?

@liveHarshit liveHarshit changed the title feat: Remove all explicit intents in favor of navigation feat: Remove all explicit intents and use safe args for search date Feb 6, 2019
@liveHarshit
Copy link
Member Author

Updated.

@iamareebjamal
Copy link
Member

Aren't we passing more intent extras?

@liveHarshit
Copy link
Member Author

Aren't we passing more intent extras?

yes, there are not main activity intenets anymore.

@iamareebjamal iamareebjamal merged commit bea5cf3 into fossasia:development Feb 6, 2019
angmas1 pushed a commit to angmas1/open-event-android that referenced this pull request Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants