Author: Adam <git@apiote.xyz>
todos
app/src/main/java/ml/adamsprogs/bimba/search/ResultsActivity.kt | 1 + app/src/main/res/layout/activity_departures.xml | 1 + app/src/main/res/layout/activity_results.xml | 1 +
diff --git a/app/src/main/java/ml/adamsprogs/bimba/search/ResultsActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/search/ResultsActivity.kt index 872d7d0a3fe8b43e228d4b76fe7c2a3c600a9e9f..70ed1056b424052ec54813aa4989f2c4028be333 100644 --- a/app/src/main/java/ml/adamsprogs/bimba/search/ResultsActivity.kt +++ b/app/src/main/java/ml/adamsprogs/bimba/search/ResultsActivity.kt @@ -84,6 +84,7 @@ val locationManager = getSystemService(Context.LOCATION_SERVICE) as LocationManager locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 5000, 10f, this ) + // todo(error-handling) timeout locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER) ?.let { onLocationChanged(it) } } diff --git a/app/src/main/res/layout/activity_departures.xml b/app/src/main/res/layout/activity_departures.xml index 9b89f4d145aa3499bdf4b03faeb760b2466cb710..914ead5d00e7339ebd0f746d5ae2f084e4d9697a 100644 --- a/app/src/main/res/layout/activity_departures.xml +++ b/app/src/main/res/layout/activity_departures.xml @@ -43,6 +43,7 @@ </com.google.android.material.appbar.AppBarLayout> + <!-- todo padding bottom --> <androidx.recyclerview.widget.RecyclerView android:id="@+id/departures_recycler" android:layout_width="match_parent" diff --git a/app/src/main/res/layout/activity_results.xml b/app/src/main/res/layout/activity_results.xml index c8d8940f8aabd45cc4040bc46253c3fded640832..f390da570b37b1b1deb63b036506b34be05d63b6 100644 --- a/app/src/main/res/layout/activity_results.xml +++ b/app/src/main/res/layout/activity_results.xml @@ -33,6 +33,7 @@ app:title="@string/title_activity_results" /> </com.google.android.material.appbar.AppBarLayout> + <!-- todo padding bottom --> <androidx.recyclerview.widget.RecyclerView android:id="@+id/results_recycler" android:layout_width="match_parent"