Skip to content

Commit 8aebfe2

Browse files
committed
updating gradle and kotlin
1 parent 2e752fe commit 8aebfe2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyWidgetProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MyWidgetProvider : AppWidgetProvider() {
3030
appWidgetManager.getAppWidgetIds(getComponentName(context)).forEach {
3131
val views = RemoteViews(context.packageName, R.layout.widget)
3232

33-
val pendingIntent = PendingIntent.getBroadcast(context, it, intent, 0)
33+
val pendingIntent = PendingIntent.getBroadcast(context, it, intent, PendingIntent.FLAG_UPDATE_CURRENT)
3434
views.setOnClickPendingIntent(R.id.flashlight_btn, pendingIntent)
3535
views.setImageViewBitmap(R.id.flashlight_btn, bmp)
3636
appWidgetManager.updateAppWidget(it, views)

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.2.31'
4+
ext.kotlin_version = '1.2.41'
55

66
repositories {
77
jcenter()
88
google()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.1.1'
12+
classpath 'com.android.tools.build:gradle:3.1.2'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

1515
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)