From 8658b15dd67dfcb62944c7a0c4a09d96628d8577 Mon Sep 17 00:00:00 2001 From: Erik Eelde Date: Tue, 8 May 2018 23:42:18 +0200 Subject: [PATCH] Bah --- .../src/main/java/com/izettle/wrench/service/WrenchService.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrench-service/src/main/java/com/izettle/wrench/service/WrenchService.kt b/wrench-service/src/main/java/com/izettle/wrench/service/WrenchService.kt index 19f5a3e..1e0d923 100644 --- a/wrench-service/src/main/java/com/izettle/wrench/service/WrenchService.kt +++ b/wrench-service/src/main/java/com/izettle/wrench/service/WrenchService.kt @@ -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 @@ -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 {