Skip to content
Permalink
Browse files

Upgrade to Kotlin 1.3.61

Fix Kotlin Lint warnings of unnecessary parenthesis, fixing issues with string templates.
  • Loading branch information
ianhanniballake committed Nov 27, 2019
1 parent f65bb48 commit c9e72471541eff4ec53104efa3e5d343a026a58d
@@ -99,7 +99,7 @@ class ProviderManager private constructor(private val context: Context)
val result = client.call(ProtocolConstants.METHOD_GET_DESCRIPTION)
result?.getString(ProtocolConstants.KEY_DESCRIPTION, "") ?: ""
} catch (e: RemoteException) {
Log.i(TAG, "Provider ${this} crashed while retrieving description", e)
Log.i(TAG, "Provider $authority crashed while retrieving description", e)
""
}
} ?: ""
@@ -33,7 +33,7 @@ buildscript {
firebaseAnalyticsVersion = '17.2.0'
firebasePerfVersion = '19.0.1'
fragmentVersion = '1.2.0-rc01'
kotlinVersion = '1.3.50'
kotlinVersion = '1.3.61'
lifecycleVersion = '2.2.0-rc01'
materialVersion = '1.1.0-beta01'
multidexVersion = '2.0.1'
@@ -78,7 +78,7 @@ private const val EXTRA_COMMAND_ID = "com.google.android.apps.muzei.api.extra.CO
suspend fun Source.sendAction(context: Context, id: Int) {
try {
if (BuildConfig.DEBUG) {
Log.d(TAG, "Sending command $id to ${this}")
Log.d(TAG, "Sending command $id to $this")
}
// Ensure that we have a valid service before sending the action
context.packageManager.getServiceInfo(componentName, 0)
@@ -101,7 +101,7 @@ class SourceArtProvider : MuzeiArtProvider() {
return PendingIntent.getActivity(context, 0, this, 0)
}
} catch (e: URISyntaxException) {
Log.i(TAG, "Unable to parse viewIntent ${this}", e)
Log.i(TAG, "Unable to parse viewIntent $artwork", e)
}
return null
}

0 comments on commit c9e7247

Please sign in to comment.
You can’t perform that action at this time.