Skip to content

Conversation

@liveHarshit
Copy link
Member

Fixes #818

@iamareebjamal iamareebjamal merged commit a79630d into fossasia:development Jan 15, 2019
@iamareebjamal
Copy link
Member

As a follow up, please create an issue to polish this implementation. I'll review what needs to be changed

android:text="@string/pick_a_city"
android:textColor="@android:color/white"
app:backgroundTint="@color/colorPrimary" />
</RelativeLayout>
Copy link
Member

Choose a reason for hiding this comment

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

Make this a contraint layout


fun saveSearch(query: String) {
preference.putString(tokenKey, query)
preference.putBoolean(LOCATION_SAVED, true)
Copy link
Member

Choose a reason for hiding this comment

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

Instead, can't we save the location itself?

setupBottomNavigationMenu(navController)

if (!preference.getBoolean(LOCATION_SAVED, false))
navController.navigate(R.id.welcomeFragment)
Copy link
Member

Choose a reason for hiding this comment

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

We haven't done this lately, but all logic goes in ViewModel so that it is testable.

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