Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Bah
Browse files Browse the repository at this point in the history
  • Loading branch information
erikeelde committed May 8, 2018
1 parent 1936b8e commit 8658b15
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.izettle.wrench.service

import android.annotation.SuppressLint
import android.app.IntentService
import android.content.ContentResolver
import android.content.Intent
Expand Down Expand Up @@ -70,6 +71,7 @@ class WrenchService : IntentService("WrenchService") {
contentResolver.update(WrenchProviderContract.boltUri(bolt.id), bolt.toContentValues(), null, null)
}

@SuppressLint("Recycle")
private fun getBolt(contentResolver: ContentResolver, @Bolt.BoltType boltType: String, key: String): Bolt? {
val cursor = contentResolver.query(WrenchProviderContract.boltUri(key), null, null, null, null)
cursor.use {
Expand Down

0 comments on commit 8658b15

Please sign in to comment.