From 874542e1af244ed7ef91c8e9119cb6272f458bd1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 23 Mar 2020 10:40:52 +0100 Subject: [PATCH] replacing the circles at the widget too --- app/src/main/AndroidManifest.xml | 2 +- .../flashlight/helpers/MyWidgetProvider.kt | 2 +- app/src/main/res/drawable/circles_small.xml | 51 ------------------- 3 files changed, 2 insertions(+), 53 deletions(-) delete mode 100644 app/src/main/res/drawable/circles_small.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 90c65f1..c9f68b5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -75,7 +75,7 @@ + android:icon="@drawable/ic_flashlight"> diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyWidgetProvider.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyWidgetProvider.kt index cfc1bdc..e810a94 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyWidgetProvider.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyWidgetProvider.kt @@ -69,7 +69,7 @@ class MyWidgetProvider : AppWidgetProvider() { } private fun getColoredCircles(context: Context, color: Int, alpha: Int): Bitmap { - val drawable = context.resources.getColoredDrawableWithColor(R.drawable.circles_small, color, alpha) + val drawable = context.resources.getColoredDrawableWithColor(R.drawable.ic_flashlight, color, alpha) return context.drawableToBitmap(drawable) } } diff --git a/app/src/main/res/drawable/circles_small.xml b/app/src/main/res/drawable/circles_small.xml deleted file mode 100644 index 72c1748..0000000 --- a/app/src/main/res/drawable/circles_small.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -