Bimba.git

commit 0b6039cf449d83f01c916d7d6ed496a5c680a441

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

bump version

 app/build.gradle | 4 +-
 app/src/main/java/ml/adamsprogs/bimba/activities/StopActivity.kt | 2 -
 app/src/main/java/ml/adamsprogs/bimba/extensions.kt | 2 


diff --git a/app/build.gradle b/app/build.gradle
index 9d34da8bcab3da4da99bebc2dcdddd0ac76c4228..f8f0f698060f367d46871360415bcb4fdcf5544d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -9,8 +9,8 @@     defaultConfig {
         applicationId "ml.adamsprogs.bimba"
         minSdkVersion 19
         targetSdkVersion 27
-        versionCode 13
-        versionName "2.0-beta3"
+        versionCode 14
+        versionName "2.0-beta4"
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
         vectorDrawables.useSupportLibrary = true
     }




diff --git a/app/src/main/java/ml/adamsprogs/bimba/activities/StopActivity.kt b/app/src/main/java/ml/adamsprogs/bimba/activities/StopActivity.kt
index 121548086633cd5414612c9d4781dd68b68542e9..a369cc81ddece00c5313ef0e19482d13785f74a1 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/activities/StopActivity.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/activities/StopActivity.kt
@@ -113,7 +113,6 @@         lastUpdated = Calendar.getInstance().timeInMillis
     }
 
     override fun onVmPrepared() {
-        //fixme do we give up too fast? (in testing)
         // println("onVmPrepared: ticked? ${ticked()}; vmBacked? ${favourite!!.isBackedByVm}")
         if ((favourite!!.isBackedByVm || ticked()) && (timetableType == "departure")) {
             getFavouriteDepartures()
@@ -172,7 +171,6 @@             favourite!!.registerOnVm(receiver, context)
     }
 
     override fun onVm(vmDepartures: Set<Departure>?, plateId: Plate.ID) {
-        //fixme do we give up too fast? (in testing)
         // println("onVm")
         if (vmDepartures == null && this.vmDepartures.isEmpty() && hasDepartures) {
             // println("\tbut noVM")




diff --git a/app/src/main/java/ml/adamsprogs/bimba/extensions.kt b/app/src/main/java/ml/adamsprogs/bimba/extensions.kt
index b402854d0f1c67823aceb116cc38f19da783d694..cc04631c1708de25c1758299bc19ba0978599b2c 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/extensions.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/extensions.kt
@@ -92,7 +92,7 @@     return dirs[0]
 //    return dirs[dirs.size - 1]
 }
 
-internal fun InputStream.listenableCopyTo(out: OutputStream, bufferSize: Int = DEFAULT_BUFFER_SIZE, listener: (Long) -> Unit): Long { //fixme may devour RAM?
+internal fun InputStream.listenableCopyTo(out: OutputStream, bufferSize: Int = DEFAULT_BUFFER_SIZE, listener: (Long) -> Unit): Long {
     var bytesCopied: Long = 0
     val buffer = ByteArray(bufferSize)
     var bytes = read(buffer)