Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Frequent white screen on statup - Fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolkmer committed Oct 16, 2017
1 parent 814dc42 commit 5c80e0a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ internal class MainServiceImpl(private var paintingCRUDAdapter: PaintingCRUDAdap

private val dummyPicture = Picture("dummy")

@Synchronized
override suspend fun get(id: String): SavedPainting = paintingCRUDAdapter.read(id) ?: throw ServiceException(
"Could not get painting with id $id")

@Synchronized
override suspend fun getAll(ids: Set<String>): Set<SavedPainting> = paintingCRUDAdapter.read(ids)

@Synchronized
Expand Down Expand Up @@ -125,11 +123,9 @@ internal class MainServiceImpl(private var paintingCRUDAdapter: PaintingCRUDAdap
paintingCRUDAdapter.update(painting.copy(tags = painting.tags - tags))
?: throw ServiceException("Could not remove tags")

@Synchronized
override suspend fun getPictureStream(picture: Picture): InputStream =
storageAdapter.getImage(picture.id)

@Synchronized
override suspend fun getFromQueryResult(queryEnumerator: QueryEnumerator): Set<SavedPainting> = getAll(
queryEnumerator.map { it.key.toString() }.toSet())

Expand Down

0 comments on commit 5c80e0a

Please sign in to comment.