summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2017-03-20 12:22:14 -0700
committerHyunyoung Song <hyunyoungs@google.com>2017-03-20 14:26:46 -0700
commit7a5a355ab8064d24e866c71dfee69520696a1201 (patch)
tree37680edab71404c6a060ea0ebf8c4715387813ac
parent6d00d97704e9cee4f6e10444347447ebf0a6f319 (diff)
downloadandroid_packages_apps_Trebuchet-7a5a355ab8064d24e866c71dfee69520696a1201.tar.gz
android_packages_apps_Trebuchet-7a5a355ab8064d24e866c71dfee69520696a1201.tar.bz2
android_packages_apps_Trebuchet-7a5a355ab8064d24e866c71dfee69520696a1201.zip
Make LEGACY_ICON_TREATMENT flag work
- targetSdk needs to be 26 - android:color attribute has been deleted Change-Id: I6b1fc5402233fb8844b475d562984cf6924e33ac
-rw-r--r--res/drawable-v26/adaptive_icon_drawable_wrapper.xml2
-rw-r--r--res/values/colors.xml1
2 files changed, 2 insertions, 1 deletions
diff --git a/res/drawable-v26/adaptive_icon_drawable_wrapper.xml b/res/drawable-v26/adaptive_icon_drawable_wrapper.xml
index 7ad8e2c64..2d78b699f 100644
--- a/res/drawable-v26/adaptive_icon_drawable_wrapper.xml
+++ b/res/drawable-v26/adaptive_icon_drawable_wrapper.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
- <background android:color="#FFE0E0E0"/>
+ <background android:drawable="@color/legacy_icon_background"/>
<foreground>
<com.android.launcher3.graphics.FixedScaleDrawable />
</foreground>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index e344571db..455729c42 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -36,4 +36,5 @@
<color name="notification_color_beneath">#E0E0E0</color> <!-- Gray 300 -->
<color name="divider_color">@color/notification_color_beneath</color>
<color name="icon_background">#E0E0E0</color> <!-- Gray 300 -->
+ <color name="legacy_icon_background">#FFFFFF</color>
</resources>