mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
replace the big icon with a drawable layer list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user