Update Developer options icon for TwoPanel only.
Screenshot: https://screenshot.googleplex.com/NdAFnyNjyxa
Bug: 128314775
Test: Manual test on deadpool.
Change-Id: Iad0a2dfbbae3d6041515369c6dee78c02beb80e3
(cherry picked from commit c5ce3dd3fb648ded617738ec1cd0634f345ee9cb)
diff --git a/TwoPanelSettingsOverlay/res/drawable/ic_developer_mode.xml b/TwoPanelSettingsOverlay/res/drawable/ic_developer_mode.xml
new file mode 100644
index 0000000..1bca4ac
--- /dev/null
+++ b/TwoPanelSettingsOverlay/res/drawable/ic_developer_mode.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2019 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License
+ -->
+
+<layer-list
+ xmlns:android="http://schemas.android.com/apk/res/android" >
+ <item android:drawable="@drawable/compound_icon_background" />
+ <item android:left="@dimen/preference_icon_offset" android:right="@dimen/preference_icon_offset" android:top="@dimen/preference_icon_offset" android:bottom="@dimen/preference_icon_offset"
+ android:drawable="@drawable/ic_developer_mode_base"/>
+</layer-list>
\ No newline at end of file
diff --git a/TwoPanelSettingsOverlay/res/drawable/ic_developer_mode_base.xml b/TwoPanelSettingsOverlay/res/drawable/ic_developer_mode_base.xml
new file mode 100644
index 0000000..4d4e428
--- /dev/null
+++ b/TwoPanelSettingsOverlay/res/drawable/ic_developer_mode_base.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2019 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:width="24dp"
+ android:height="24dp">
+ <path
+ android:pathData="M4 5h16v2h2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v2h2V5zm3.55 8.83L4.72 11l2.83-2.83-1.41-1.41L1.89 11l4.24 4.24 1.42-1.41zM20 17H4v-2H2v2c0 1.1.9 2 2 2h4v2h8v-2h4c1.1 0 1.99-.9 1.99-2v-2H20v2zm2-6.01l-4.24-4.24-1.41 1.41L19.17 11l-2.83 2.83 1.41 1.41L22 11.01v-.02z"
+ android:fillColor="@color/preference_icon_color" />
+</vector>
\ No newline at end of file
diff --git a/TwoPanelSettingsOverlay/res/xml/device.xml b/TwoPanelSettingsOverlay/res/xml/device.xml
index 89e44a9..cbab869 100644
--- a/TwoPanelSettingsOverlay/res/xml/device.xml
+++ b/TwoPanelSettingsOverlay/res/xml/device.xml
@@ -61,7 +61,7 @@
android:title="@string/device_daydream"/>
<Preference
android:fragment="com.android.tv.settings.system.development.DevelopmentFragment"
- android:icon="@drawable/ic_settings_developeroptions"
+ android:icon="@drawable/ic_developer_mode"
android:key="developer"
android:title="@string/system_developer_options"/>
<Preference