diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 01b73c1..b2059fc 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,7 +7,7 @@ diff --git a/app/src/main/java/com/simplemobiletools/draw/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/draw/activities/MainActivity.java index a7c3fab..3fea094 100644 --- a/app/src/main/java/com/simplemobiletools/draw/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/draw/activities/MainActivity.java @@ -329,11 +329,7 @@ public class MainActivity extends SimpleActivity implements MyCanvas.PathsChange } private void setBackgroundColor(int pickedColor) { - if (Utils.shouldUseWhite(pickedColor)) { - ((ImageView) mUndoBtn).setImageResource(R.mipmap.undo_white); - } else { - ((ImageView) mUndoBtn).setImageResource(R.mipmap.undo_black); - } + ((ImageView) mUndoBtn).setImageResource(R.drawable.ic_undo); mMyCanvas.setBackgroundColor(pickedColor); } diff --git a/app/src/main/res/mipmap-hdpi/ic_clear.png b/app/src/main/res/drawable-hdpi/ic_clear.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/ic_clear.png rename to app/src/main/res/drawable-hdpi/ic_clear.png diff --git a/app/src/main/res/mipmap-hdpi/save.png b/app/src/main/res/drawable-hdpi/ic_save.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/save.png rename to app/src/main/res/drawable-hdpi/ic_save.png diff --git a/app/src/main/res/mipmap-hdpi/undo_white.png b/app/src/main/res/drawable-hdpi/ic_undo.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/undo_white.png rename to app/src/main/res/drawable-hdpi/ic_undo.png diff --git a/app/src/main/res/mipmap-mdpi/ic_clear.png b/app/src/main/res/drawable-mdpi/ic_clear.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/ic_clear.png rename to app/src/main/res/drawable-mdpi/ic_clear.png diff --git a/app/src/main/res/mipmap-mdpi/save.png b/app/src/main/res/drawable-mdpi/ic_save.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/save.png rename to app/src/main/res/drawable-mdpi/ic_save.png diff --git a/app/src/main/res/mipmap-mdpi/undo_white.png b/app/src/main/res/drawable-mdpi/ic_undo.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/undo_white.png rename to app/src/main/res/drawable-mdpi/ic_undo.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_clear.png b/app/src/main/res/drawable-xhdpi/ic_clear.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/ic_clear.png rename to app/src/main/res/drawable-xhdpi/ic_clear.png diff --git a/app/src/main/res/mipmap-xhdpi/save.png b/app/src/main/res/drawable-xhdpi/ic_save.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/save.png rename to app/src/main/res/drawable-xhdpi/ic_save.png diff --git a/app/src/main/res/mipmap-xhdpi/undo_white.png b/app/src/main/res/drawable-xhdpi/ic_undo.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/undo_white.png rename to app/src/main/res/drawable-xhdpi/ic_undo.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_clear.png b/app/src/main/res/drawable-xxhdpi/ic_clear.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/ic_clear.png rename to app/src/main/res/drawable-xxhdpi/ic_clear.png diff --git a/app/src/main/res/mipmap-xxhdpi/save.png b/app/src/main/res/drawable-xxhdpi/ic_save.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/save.png rename to app/src/main/res/drawable-xxhdpi/ic_save.png diff --git a/app/src/main/res/mipmap-xxhdpi/undo_white.png b/app/src/main/res/drawable-xxhdpi/ic_undo.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/undo_white.png rename to app/src/main/res/drawable-xxhdpi/ic_undo.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_clear.png b/app/src/main/res/drawable-xxxhdpi/ic_clear.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/ic_clear.png rename to app/src/main/res/drawable-xxxhdpi/ic_clear.png diff --git a/app/src/main/res/mipmap-xxxhdpi/save.png b/app/src/main/res/drawable-xxxhdpi/ic_save.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/save.png rename to app/src/main/res/drawable-xxxhdpi/ic_save.png diff --git a/app/src/main/res/mipmap-xxxhdpi/undo_white.png b/app/src/main/res/drawable-xxxhdpi/ic_undo.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/undo_white.png rename to app/src/main/res/drawable-xxxhdpi/ic_undo.png diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 5ee3c59..a14fcaa 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -23,7 +23,7 @@ android:layout_alignParentRight="true" android:layout_below="@id/color_picker" android:padding="@dimen/medium_margin" - android:src="@mipmap/undo_black" + android:src="@drawable/ic_undo" android:visibility="gone"/>