List updates when returning from add, fixes in edittexts

This commit is contained in:
Daniele Verducci (ZenPenguin) 2021-08-28 17:28:19 +02:00
parent 63f2ab9520
commit cf24433d4d
2 changed files with 81 additions and 64 deletions

View File

@ -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();
}

View File

@ -8,11 +8,15 @@
type="it.danieleverducci.nextcloudmaps.model.Geofavorite"/>
</data>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/root">
<LinearLayout
android:id="@+id/root"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<ImageView
android:id="@+id/map"
@ -34,6 +38,10 @@
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/name"
android:lines="1"
android:maxLines="1"
android:singleLine="true"
android:ellipsize="end"
android:text="@{geofavorite.name}"/>
<EditText
@ -44,6 +52,7 @@
android:gravity="start|top"
android:inputType="textMultiLine"
android:hint="@string/description"
android:ellipsize="end"
android:text="@{geofavorite.comment}" />
<TextView
@ -87,4 +96,5 @@
</LinearLayout>
</LinearLayout>
</ScrollView>
</layout>