Skip to content

Commit 874542e

Browse files
committed
replacing the circles at the widget too
1 parent d9b7569 commit 874542e

File tree

3 files changed

+2
-53
lines changed

3 files changed

+2
-53
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
<receiver
7777
android:name=".helpers.MyWidgetProvider"
78-
android:icon="@drawable/circles_small">
78+
android:icon="@drawable/ic_flashlight">
7979
<intent-filter>
8080
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
8181
</intent-filter>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MyWidgetProvider : AppWidgetProvider() {
6969
}
7070

7171
private fun getColoredCircles(context: Context, color: Int, alpha: Int): Bitmap {
72-
val drawable = context.resources.getColoredDrawableWithColor(R.drawable.circles_small, color, alpha)
72+
val drawable = context.resources.getColoredDrawableWithColor(R.drawable.ic_flashlight, color, alpha)
7373
return context.drawableToBitmap(drawable)
7474
}
7575
}

app/src/main/res/drawable/circles_small.xml

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)