Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.15.14' propVersionName = '3.15.15' kotlin_version = '1.2.30' support_libs = '27.1.0' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/extensions/RemoteViews.kt +5 −0 Original line number Diff line number Diff line package com.simplemobiletools.commons.extensions import android.view.View import android.widget.RemoteViews fun RemoteViews.setBackgroundColor(id: Int, color: Int) { Loading @@ -13,3 +14,7 @@ fun RemoteViews.setTextSize(id: Int, size: Float) { fun RemoteViews.setText(id: Int, text: String) { setTextViewText(id, text) } fun RemoteViews.setVisibleIf(id: Int, beVisible: Boolean) { setViewVisibility(id, if (beVisible) View.VISIBLE else View.GONE) } Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.15.14' propVersionName = '3.15.15' kotlin_version = '1.2.30' support_libs = '27.1.0' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/RemoteViews.kt +5 −0 Original line number Diff line number Diff line package com.simplemobiletools.commons.extensions import android.view.View import android.widget.RemoteViews fun RemoteViews.setBackgroundColor(id: Int, color: Int) { Loading @@ -13,3 +14,7 @@ fun RemoteViews.setTextSize(id: Int, size: Float) { fun RemoteViews.setText(id: Int, text: String) { setTextViewText(id, text) } fun RemoteViews.setVisibleIf(id: Int, beVisible: Boolean) { setViewVisibility(id, if (beVisible) View.VISIBLE else View.GONE) }