From 88cf7711b09096d86945e526f3d0bcd585acedf5 Mon Sep 17 00:00:00 2001 From: Daniele Date: Fri, 17 Sep 2021 08:23:37 +0200 Subject: [PATCH] Fixed new geobookmark date, changed "open in app" icon --- .../activity/detail/GeofavoriteDetailActivity.java | 7 ++++--- app/src/main/res/drawable/ic_nav.xml | 13 ++++--------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/detail/GeofavoriteDetailActivity.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/detail/GeofavoriteDetailActivity.java index 1142d21..6befe11 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/detail/GeofavoriteDetailActivity.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/detail/GeofavoriteDetailActivity.java @@ -108,7 +108,8 @@ public class GeofavoriteDetailActivity extends AppCompatActivity implements Loca @Override public void onMapClicked() { - Toast.makeText(GeofavoriteDetailActivity.this, "TODO: Open map activity with pin", Toast.LENGTH_SHORT).show(); + // TODO: Open map activity with pin + startActivity(IntentGenerator.newGeoUriIntent(GeofavoriteDetailActivity.this, mGeofavorite)); } }); @@ -120,8 +121,8 @@ public class GeofavoriteDetailActivity extends AppCompatActivity implements Loca // New geofavorite mGeofavorite = new Geofavorite(); mGeofavorite.setCategory(DEFAULT_CATEGORY); - mGeofavorite.setDateCreated(System.currentTimeMillis()); - mGeofavorite.setDateModified(System.currentTimeMillis()); + mGeofavorite.setDateCreated(System.currentTimeMillis() / 1000); + mGeofavorite.setDateModified(System.currentTimeMillis() / 1000); mViewHolder.hideActions(); // Precompile location diff --git a/app/src/main/res/drawable/ic_nav.xml b/app/src/main/res/drawable/ic_nav.xml index d1274d8..303069f 100644 --- a/app/src/main/res/drawable/ic_nav.xml +++ b/app/src/main/res/drawable/ic_nav.xml @@ -1,10 +1,5 @@ - - + +