From 999ae6840b0c20787cf9985101245418ff8c2b26 Mon Sep 17 00:00:00 2001 From: LooKeR Date: Mon, 25 Sep 2023 00:00:54 +0530 Subject: [PATCH] Replace screenshot placeholder --- .../com/looker/core/common/extension/Context.kt | 2 +- core/common/src/main/res/drawable/ic_image.xml | 10 ++++++++++ .../src/main/res/drawable/ic_photo_camera.xml | 13 ------------- 3 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 core/common/src/main/res/drawable/ic_image.xml delete mode 100644 core/common/src/main/res/drawable/ic_photo_camera.xml diff --git a/core/common/src/main/java/com/looker/core/common/extension/Context.kt b/core/common/src/main/java/com/looker/core/common/extension/Context.kt index 90f017113..95d0da6d3 100644 --- a/core/common/src/main/java/com/looker/core/common/extension/Context.kt +++ b/core/common/src/main/java/com/looker/core/common/extension/Context.kt @@ -41,7 +41,7 @@ val Context.selectableBackground: Drawable get() = getDrawableFromAttr(android.R.attr.selectableItemBackground) val Context.camera: Drawable - get() = getDrawableCompat(R.drawable.ic_photo_camera) + get() = getDrawableCompat(R.drawable.ic_image) val Context.aspectRatio: Float get() = resources.displayMetrics.heightPixels.toFloat() / resources.displayMetrics.widthPixels.toFloat() diff --git a/core/common/src/main/res/drawable/ic_image.xml b/core/common/src/main/res/drawable/ic_image.xml new file mode 100644 index 000000000..1e3e6a245 --- /dev/null +++ b/core/common/src/main/res/drawable/ic_image.xml @@ -0,0 +1,10 @@ + + + diff --git a/core/common/src/main/res/drawable/ic_photo_camera.xml b/core/common/src/main/res/drawable/ic_photo_camera.xml deleted file mode 100644 index b0a8ec5b3..000000000 --- a/core/common/src/main/res/drawable/ic_photo_camera.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - \ No newline at end of file