From 8b470c192798252ab61fecc44b556c7d1d0708ed Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (Slimpenguin)" Date: Wed, 28 Feb 2024 13:58:14 +0100 Subject: [PATCH] Add geofavorite detail: Moved save button to header for consistency --- .../detail/GeofavoriteDetailActivity.java | 9 ----- ...ting_semitransparent_button_background.xml | 6 +--- app/src/main/res/drawable/ic_manual_pos.xml | 16 --------- .../layout/activity_geofavorite_detail.xml | 33 +++++++------------ .../res/layout/fragment_geofavorite_map.xml | 1 - 5 files changed, 13 insertions(+), 52 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_manual_pos.xml 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 3de1f63..30b11e7 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 @@ -80,11 +80,6 @@ public class GeofavoriteDetailActivity extends NextcloudMapsStyledActivity imple finish(); } - @Override - public void onMapEditPressed() { - //TODO - } - @Override public void onActionIconShareClicked() { startActivity(Intent.createChooser(IntentGenerator.newShareIntent(GeofavoriteDetailActivity.this, mGeofavorite), getString(R.string.share_via))); @@ -407,9 +402,6 @@ public class GeofavoriteDetailActivity extends NextcloudMapsStyledActivity imple if (v.getId() == R.id.back_bt && this.listener != null) { this.listener.onBackPressed(); } - if (v.getId() == R.id.manual_pos_bt && this.listener != null) { - this.listener.onMapEditPressed(); - } // Actions if (v.getId() == R.id.action_icon_share && this.listener != null) { @@ -428,7 +420,6 @@ public class GeofavoriteDetailActivity extends NextcloudMapsStyledActivity imple void onSubmit(); void onMapClicked(); void onBackPressed(); - void onMapEditPressed(); void onActionIconShareClicked(); void onActionIconNavClicked(); void onActionIconDeleteClicked(); diff --git a/app/src/main/res/drawable/floating_semitransparent_button_background.xml b/app/src/main/res/drawable/floating_semitransparent_button_background.xml index 27da624..66bdc54 100644 --- a/app/src/main/res/drawable/floating_semitransparent_button_background.xml +++ b/app/src/main/res/drawable/floating_semitransparent_button_background.xml @@ -1,10 +1,6 @@ - + diff --git a/app/src/main/res/drawable/ic_manual_pos.xml b/app/src/main/res/drawable/ic_manual_pos.xml deleted file mode 100644 index 20b8190..0000000 --- a/app/src/main/res/drawable/ic_manual_pos.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - diff --git a/app/src/main/res/layout/activity_geofavorite_detail.xml b/app/src/main/res/layout/activity_geofavorite_detail.xml index f948998..224334d 100644 --- a/app/src/main/res/layout/activity_geofavorite_detail.xml +++ b/app/src/main/res/layout/activity_geofavorite_detail.xml @@ -51,25 +51,26 @@ - + + android:background="@drawable/round_button_background"/> @@ -258,16 +259,6 @@ android:indeterminate="true" android:visibility="gone"/> -