diff --git a/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java index 66e1856..ebbe9a3 100644 --- a/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/flashlight/activities/MainActivity.java @@ -133,7 +133,7 @@ public class MainActivity extends SimpleActivity { private void changeIconColor(int colorId, ImageView imageView) { final int appColor = getResources().getColor(colorId); - imageView.getDrawable().mutate().setColorFilter(appColor, PorterDuff.Mode.SRC_IN); + imageView.getDrawable().mutate().setColorFilter(appColor, PorterDuff.Mode.SRC_ATOP); } @Subscribe diff --git a/app/src/main/res/drawable/circles.xml b/app/src/main/res/drawable/circles.xml new file mode 100644 index 0000000..ca8bb17 --- /dev/null +++ b/app/src/main/res/drawable/circles.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index fc01d9c..4ff0177 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -13,7 +13,7 @@ android:id="@+id/toggle_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:src="@mipmap/flashlight_big"/> + android:src="@drawable/circles"/>