diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java index f8f8be8..1a87796 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java @@ -169,6 +169,13 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti updateGridIcon(gridViewEnabled); mApi = new ApiProvider(getApplicationContext()); + } + + @Override + protected void onStart() { + super.onStart(); + + // Update list presenter.getGeofavorites(); } diff --git a/app/src/main/res/layout/activity_geofavorite_detail.xml b/app/src/main/res/layout/activity_geofavorite_detail.xml index 381e11f..87b2f6b 100644 --- a/app/src/main/res/layout/activity_geofavorite_detail.xml +++ b/app/src/main/res/layout/activity_geofavorite_detail.xml @@ -8,83 +8,93 @@ type="it.danieleverducci.nextcloudmaps.model.Geofavorite"/> - - - + android:layout_height="match_parent" + android:id="@+id/root"> + android:layout_width="match_parent" + android:layout_height="wrap_content"> - + android:layout_height="200dp" + android:padding="50dp" + app:srcCompat="@drawable/ic_app" + android:background="@color/defaultBrand" /> - + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="20dp"> - + - + - + - + -