Skip to content
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

Added 'Offline Maps' to Navigation Drawer #545

Closed
wants to merge 16 commits into from

Conversation

jtj9817
Copy link
Contributor

@jtj9817 jtj9817 commented Oct 30, 2018

Description

Starting point for the features requested in #534 .

Changes

  • Created 'Offline Maps' icon
  • Created ' case R.id.nav_offlinemaps:' switch-statement condition on MainACtivity.java
  • 'fragment_offlinemaps.xml' created
  • Added 'Offline Maps' to strings.xml Created 'OfflineMapsFragment.java' class under io.github.project_travel_mate/utilities folder

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • ./gradlew assembleDebug assembleRelease
  • ./gradlew checkstyle
  • Ran the app on Genymotion Emulator with Google Pixel 2 (API 26) and no crashes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Screenshot

Starting point for project-travel-mate#534

Added the 'Offline Maps' section to the Navigation Drawer complete with the icon. 'fragment_offlinemaps.xml' and 'OfflineMapsFragment.java' also created.
Copy link
Member

@Swati4star Swati4star left a comment

Choose a reason for hiding this comment

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

Post a screenshot of final UI changes also...

.idea/workspace.xml Outdated Show resolved Hide resolved
@@ -233,7 +233,9 @@ private Fragment getFragmentByNavMenuItemId(int id) {
case R.id.nav_utility:
fragment = UtilitiesFragment.newInstance();
break;

//Work In Progress Offline Maps
Copy link
Member

Choose a reason for hiding this comment

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

is it work in progress or done?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still a work in progress for the MainActivity.java file as I'm still trying to figure out how the feature should be implemented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Swati4star Hey, just cleaned up this branch for the merging process. Please review it again, thanks!

@@ -182,7 +182,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat

mCityAdapter.updateData(mCities);

if (mSpotlightShownCount <= 3) {
if (mSpotlightShownCount <= 4) {
Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, this was an experimentation I was doing on trying to solve the #539 issue.

Implemented the changes as requested by the discussion in project-travel-mate#545.
@Swati4star
Copy link
Member

@jtj9817 You have opened a number of PRs. Let's start merging them one by one.
Starting with this one, This one still has .idea folder, .gitignore also

and is it still a work in progress? If yes, lets be done with this. (either close it or make it ready to be merged)

@Swati4star
Copy link
Member

@jtj9817 Are you going to clean it up?

@jtj9817
Copy link
Contributor Author

jtj9817 commented Nov 11, 2018

Sorry @Swati4star for the late reply but yes I'm going to clean this one up, just been busy with school for this past week.

Reverted previous minor change to layout orientation
@Swati4star
Copy link
Member

Instead of png, you should use an xml drawable file

@jtj9817
Copy link
Contributor Author

jtj9817 commented Nov 14, 2018

Instead of png, you should use an xml drawable file

Will try to convert the PNG to a vector asset. Probably a day.

@jtj9817
Copy link
Contributor Author

jtj9817 commented Nov 18, 2018

@Swati4star Just made the recent suggestion that you requested. I hope it's good for a merge now, thanks!

These diagrams are added automatically using SimpleUMLCE. SimpleUMLCE is installed as a plug-in for Android Studio and enables automatic creation of UML files by selecting the appropriate target files.
@Swati4star Swati4star closed this Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants