Bimba.git

commit fef235342e070dc311fd7816a41ea54bda656355

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

loading sheds

%!v(PANIC=String method: strings: negative Repeat count)


diff --git a/app/build.gradle b/app/build.gradle
index ac5d2cf405e6b9b958c6d687dbc214b60c501e61..9b2a0d619270e2dfd70a67742dd62c2110e55579 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -30,9 +30,9 @@     })
     implementation 'androidx.appcompat:appcompat:1.0.2'
     implementation 'androidx.cardview:cardview:1.0.0'
     implementation 'androidx.vectordrawable:vectordrawable:1.0.1'
-    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
+    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
 
-    implementation 'com.google.android.material:material:1.1.0-alpha01'
+    implementation 'com.google.android.material:material:1.1.0-alpha02'
 
     implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
     implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.27.0-eap13'




diff --git a/app/src/main/java/ml/adamsprogs/bimba/activities/StopSpecifyActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/activities/StopSpecifyActivity.kt
index 53e6669764c27a98c3e6ec5500734ec1e31c68c7..b7a279927b507576117d428dc6d82df19d2645ea 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/activities/StopSpecifyActivity.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/activities/StopSpecifyActivity.kt
@@ -25,6 +25,7 @@
         val name = intent.getStringExtra(EXTRA_STOP_NAME)
         val providerProxy = ProviderProxy(this)
         providerProxy.getSheds(name) {
+            progressBar.visibility = View.GONE
             val layoutManager = androidx.recyclerview.widget.LinearLayoutManager(this)
             val departuresList: androidx.recyclerview.widget.RecyclerView = list_view
 




diff --git a/app/src/main/res/layout/activity_stop_specify.xml b/app/src/main/res/layout/activity_stop_specify.xml
index 3bb53972add8304ad5a563ac9338434debfa842c..681d5a0a455e1c500a1ccbe98080f8a3f6585d71 100644
--- a/app/src/main/res/layout/activity_stop_specify.xml
+++ b/app/src/main/res/layout/activity_stop_specify.xml
@@ -6,6 +6,16 @@     android:layout_width="match_parent"
     android:layout_height="match_parent"
     tools:context="ml.adamsprogs.bimba.activities.StopSpecifyActivity">
 
+    <ProgressBar
+        android:id="@+id/progressBar"
+        style="?android:attr/progressBarStyle"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toBottomOf="@+id/appbar" />
+
     <com.google.android.material.appbar.AppBarLayout
         android:id="@+id/appbar"
         android:layout_width="match_parent"




diff --git a/research/datasources.md b/research/datasources.md
index 2aa037fcfd2a6040958f950bb02c64685d6170c2..80149196a6eed388c865b5e4a69baef698bdef38 100644
--- a/research/datasources.md
+++ b/research/datasources.md
@@ -8,3 +8,10 @@ * wireless: http://egov.psnc.pl/node/29#wireless_poznan
 * tourism: http://egov.psnc.pl/node/29#turystyka
 * P&R: https://www.peka.poznan.pl/SOP/parkings/getAvailableSpaces.jspb
 * accidents: https://mympk.mpk.poznan.pl/web/menu
+* 
+* news:
+*   https://mympk.mpk.poznan.pl/web/categories/aktualnosci [json/html]
+*   https://ztm.poznan.pl/aktualnosci/rss [rss/html]
+* accidents:
+*   https://mympk.mpk.poznan.pl/web/categories/zdarzenia-komunikacyjne [json/html]
+*   https://ztm.poznan.pl/komunikaty/rss [rss/html]




diff --git a/todo b/todo
new file mode 100644
index 0000000000000000000000000000000000000000..062fa624ca055386d0690ed1f48b82ae41f74856
--- /dev/null
+++ b/todo
@@ -0,0 +1,13 @@
+- acra: https://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application
+v empty search result
+- sort search results
+- search results loading [?]
+- search results history [?]
+v shed loading
+- departures loading
+- departures empty
+- search result retry
+- shed retry
+- departures retry
+- ripples
+- search results flickering