Issue #27 fix
This commit is contained in:
@@ -576,6 +576,17 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
histories.remove(galleryID)
|
||||
|
||||
if (this@MainActivity.mode == Mode.HISTORY) {
|
||||
runOnUiThread {
|
||||
cancelFetch()
|
||||
clearGalleries()
|
||||
fetchGalleries(query, sortMode)
|
||||
loadBlocks()
|
||||
}
|
||||
}
|
||||
|
||||
completeFlag.put(galleryID, false)
|
||||
}
|
||||
|
||||
@@ -1165,7 +1176,7 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
} ?: return@async null
|
||||
|
||||
val thumbnail = async {
|
||||
val thumbnail = async(Dispatchers.IO) {
|
||||
val ext = galleryBlock.thumbnails[0].split('.').last()
|
||||
File(getCachedGallery(this@MainActivity, galleryBlock.id), "thumbnail.$ext").apply {
|
||||
if (!exists())
|
||||
|
||||
@@ -20,22 +20,19 @@
|
||||
|
||||
package xyz.quaver.pupil
|
||||
|
||||
import org.junit.Test
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
* See [testing documentation](http://d.android.com/tools/testing).
|
||||
*/
|
||||
|
||||
import org.junit.Test
|
||||
|
||||
class ExampleUnitTest {
|
||||
|
||||
@Test
|
||||
fun test() {
|
||||
val current = "0.1"
|
||||
val latest = "0.2"
|
||||
|
||||
print(current < latest)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user