Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,16 +396,18 @@ public boolean onNavigationItemSelected(MenuItem item) {
// Handle navigation view item clicks here.
int id = item.getItemId();

if (id == R.id.nav_login) {
if (id == R.id.nav_map) {
preventanylMapFragment = new PreventanylMapFragment();
getSupportFragmentManager ().beginTransaction ().replace (R.id.content_frame, preventanylMapFragment).commitNow ();
} else if (id == R.id.nav_login) {
loginFragment = new LoginFragment();
getSupportFragmentManager ().beginTransaction ().replace (R.id.content_frame, loginFragment).commitNow ();
} else if (id == R.id.nav_register) {

/*} else if (id == R.id.nav_instructions) {
} else if (id == R.id.nav_instructions) {

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://towardtheheart.com/naloxone-course"));
startActivity(browserIntent);
*/

} else if (id == R.id.nav_shop) {

Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
## 97bc4346faf5cfe7c3e87cdba0a31da248221d2d - 2017-11-29 - Yudhvir
### Added
- Map icon opens map fragment

## 97bc4346faf5cfe7c3e87cdba0a31da248221d2d - 2017-11-29 - Yudhvir
### Added
- Push notifications work and display on ui thread
Expand Down