Files
app_Settings/res/drawable/ic_enhanced_connectivity_dynamic.xml
Nurbek Sakiev 35feb14df1 Put the new illustration behind the flag.
- Revert the illustration changes in ag/34622593.
- Create the new illustration in a separate file.
- The `AdaptiveConnectivitySettings` fragment now programmatically sets the illustration based on the `enableNestedToggleSwitches` flag.

Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: AdaptiveConnectivitySettingsTest
Change-Id: Ibcdf7e45cc21d7bd657bfacada0f8514c83ff500
2025-08-18 10:55:48 -07:00

80 lines
8.8 KiB
XML

<!--
~ Copyright (C) 2025 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:width="380dp"
android:height="300dp"
android:viewportWidth="380"
android:viewportHeight="300">
<group>
<clip-path
android:pathData="M28,0L352,0A28,28 0,0 1,380 28L380,272A28,28 0,0 1,352 300L28,300A28,28 0,0 1,0 272L0,28A28,28 0,0 1,28 0z"/>
<path
android:pathData="M356,0H24C10.75,0 0,10.75 0,24V276C0,289.26 10.75,300 24,300H356C369.26,300 380,289.26 380,276V24C380,10.75 369.26,0 356,0Z"
android:fillColor="@color/settingslib_materialColorSurfaceContainer"/>
<path
android:pathData="M72,166.64C70.39,166.64 68.77,166.26 67.3,165.49L62.47,162.99C61.51,162.5 60.48,162.16 59.43,162L54.05,161.18C50.77,160.68 47.93,158.62 46.45,155.66L44.01,150.79C43.54,149.84 42.9,148.97 42.13,148.2L38.26,144.38C35.9,142.05 34.82,138.71 35.36,135.44L36.24,130.07C36.42,129.01 36.42,127.93 36.24,126.87L35.36,121.5C34.82,118.23 35.91,114.89 38.26,112.56L42.13,108.74C42.9,107.98 43.53,107.11 44.01,106.15L46.45,101.28C47.93,98.32 50.78,96.25 54.05,95.76L59.43,94.94C60.5,94.78 61.52,94.44 62.47,93.95L67.3,91.45C70.24,89.93 73.76,89.93 76.7,91.45L81.53,93.95C82.48,94.45 83.51,94.78 84.57,94.94L89.95,95.76C93.23,96.26 96.07,98.32 97.55,101.28L99.99,106.15C100.47,107.11 101.1,107.98 101.87,108.74L105.74,112.56C108.1,114.89 109.18,118.23 108.64,121.5L107.76,126.87C107.58,127.93 107.58,129.01 107.76,130.07L108.64,135.44C109.18,138.71 108.1,142.05 105.74,144.38L101.87,148.2C101.1,148.97 100.46,149.84 99.99,150.79L97.55,155.66C96.06,158.62 93.22,160.69 89.95,161.18L84.57,162C83.51,162.16 82.48,162.49 81.53,162.99L76.7,165.49C75.23,166.25 73.62,166.64 72,166.64Z"
android:fillColor="@color/settingslib_materialColorPrimaryContainer"/>
<path
android:pathData="M276.7,119.03C270.33,104.36 285.22,89.48 299.88,95.85L302.31,96.9C306.79,98.84 311.87,98.84 316.35,96.9L318.77,95.85C333.44,89.48 348.32,104.37 341.95,119.03L340.9,121.45C338.96,125.93 338.96,131.01 340.9,135.49L341.95,137.92C348.32,152.59 333.44,167.47 318.77,161.1L316.35,160.05C311.87,158.11 306.79,158.11 302.31,160.05L299.88,161.1C285.21,167.47 270.33,152.58 276.7,137.92L277.75,135.49C279.7,131.01 279.7,125.93 277.75,121.45L276.7,119.03Z"
android:fillColor="@color/settingslib_materialColorPrimaryContainer"/>
<path
android:pathData="M195.7,26.66H182.99C166.54,26.66 153.21,39.99 153.21,56.44V69.15C153.21,85.6 166.54,98.93 182.99,98.93H195.7C212.15,98.93 225.48,85.6 225.48,69.15V56.44C225.48,39.99 212.15,26.66 195.7,26.66Z"
android:fillColor="@color/settingslib_materialColorPrimaryContainer"/>
<path
android:pathData="M190,134.63C192.57,134.63 194.65,132.55 194.65,129.98C194.65,127.41 192.57,125.33 190,125.33C187.43,125.33 185.35,127.41 185.35,129.98C185.35,132.55 187.43,134.63 190,134.63Z"
android:fillColor="@color/settingslib_materialColorPrimary"/>
<path
android:pathData="M190,155.01C192.57,155.01 194.65,152.93 194.65,150.36C194.65,147.79 192.57,145.71 190,145.71C187.43,145.71 185.35,147.79 185.35,150.36C185.35,152.93 187.43,155.01 190,155.01Z"
android:fillColor="@color/settingslib_materialColorPrimary"/>
<path
android:pathData="M190,175.84C192.57,175.84 194.65,173.76 194.65,171.19C194.65,168.62 192.57,166.54 190,166.54C187.43,166.54 185.35,168.62 185.35,171.19C185.35,173.76 187.43,175.84 190,175.84Z"
android:fillColor="@color/settingslib_materialColorPrimary"/>
<path
android:pathData="M190,196.67C192.57,196.67 194.65,194.59 194.65,192.02C194.65,189.45 192.57,187.37 190,187.37C187.43,187.37 185.35,189.45 185.35,192.02C185.35,194.59 187.43,196.67 190,196.67Z"
android:fillColor="@color/settingslib_materialColorPrimary"/>
<path
android:pathData="M200.46,51.69H179.49C175.44,51.69 172.15,54.98 172.15,59.03V63.87C172.15,67.92 175.44,71.21 179.49,71.21H200.46C204.51,71.21 207.8,67.92 207.8,63.87V59.03C207.8,54.98 204.51,51.69 200.46,51.69Z"
android:fillColor="@color/settingslib_materialColorSurfaceContainerLowest"/>
<path
android:pathData="M209.3,56.94H209.85C210.8,56.94 211.57,57.71 211.57,58.66V64.22C211.57,65.17 210.8,65.94 209.85,65.94H209.3V56.93V56.94Z"
android:fillColor="@color/settingslib_materialColorSurfaceContainerLowest"/>
<path
android:pathData="M171.77,57.69C171.77,54.37 174.46,51.68 177.78,51.68H198.8V71.2H177.78C174.46,71.2 171.77,68.51 171.77,65.19V57.68V57.69Z"
android:fillColor="@color/settingslib_materialColorOnPrimaryContainer"/>
<path
android:pathData="M71.52,142.96C70.48,142.96 69.58,142.59 68.86,141.87C68.14,141.15 67.77,140.25 67.77,139.21C67.77,138.17 68.14,137.28 68.86,136.55C69.58,135.83 70.47,135.46 71.52,135.46C72.57,135.46 73.46,135.83 74.18,136.55C74.9,137.27 75.27,138.17 75.27,139.21C75.27,140.25 74.9,141.15 74.18,141.87C73.46,142.59 72.56,142.96 71.52,142.96ZM82.01,132.99H81.96C81.38,132.98 80.85,132.79 80.39,132.42C79.19,131.41 77.81,130.61 76.31,130.05C73.31,128.92 69.74,128.92 66.74,130.05C65.23,130.62 63.87,131.41 62.68,132.4C62.2,132.78 61.66,132.97 61.08,132.98C60.44,132.98 59.89,132.76 59.47,132.33C59.03,131.88 58.81,131.31 58.83,130.7C58.85,130.06 59.13,129.5 59.65,129.09C61.23,127.72 63.06,126.64 65.07,125.86C67.08,125.09 69.26,124.69 71.53,124.69C73.8,124.69 75.98,125.08 77.99,125.86C80,126.63 81.82,127.73 83.43,129.11C83.92,129.5 84.2,130.07 84.23,130.69C84.26,131.32 84.03,131.88 83.58,132.33C83.16,132.75 82.62,132.98 82.02,132.98L82.01,132.99ZM89.95,125.11C89.87,125.11 89.78,125.11 89.7,125.1C89.13,125.04 88.6,124.8 88.14,124.41C85.92,122.42 83.37,120.85 80.55,119.75C77.74,118.65 74.7,118.09 71.53,118.09C68.36,118.09 65.32,118.65 62.51,119.75C59.69,120.85 57.15,122.41 54.94,124.39C54.46,124.8 53.92,125.04 53.36,125.1C52.69,125.17 52.09,124.96 51.61,124.48C51.16,124.03 50.94,123.45 50.97,122.81C51,122.17 51.28,121.61 51.78,121.19C54.36,118.83 57.36,116.95 60.69,115.61C64.03,114.27 67.68,113.59 71.54,113.59C75.4,113.59 79.05,114.27 82.39,115.61C85.72,116.95 88.73,118.83 91.32,121.21C91.79,121.61 92.07,122.18 92.1,122.81C92.13,123.45 91.91,124.03 91.46,124.48C91.04,124.9 90.53,125.12 89.96,125.12L89.95,125.11Z"
android:fillColor="@color/settingslib_materialColorOnPrimaryContainer"/>
<path
android:pathData="M322.75,114.08C322.75,112.84 321.74,111.83 320.5,111.83C319.26,111.83 318.25,112.84 318.25,114.08V137.99C318.25,139.23 319.26,140.24 320.5,140.24C321.74,140.24 322.75,139.23 322.75,137.99V114.08Z"
android:fillColor="@color/settingslib_materialColorOnPrimaryContainer"/>
<path
android:pathData="M311.32,124.17C311.32,122.93 310.31,121.92 309.07,121.92C307.83,121.92 306.82,122.93 306.82,124.17V137.99C306.82,139.23 307.83,140.24 309.07,140.24C310.31,140.24 311.32,139.23 311.32,137.99V124.17Z"
android:fillColor="@color/settingslib_materialColorOnPrimaryContainer"/>
<path
android:pathData="M299.91,134.37C299.91,133.13 298.9,132.12 297.66,132.12C296.42,132.12 295.41,133.13 295.41,134.37V137.99C295.41,139.23 296.42,140.24 297.66,140.24C298.9,140.24 299.91,139.23 299.91,137.99V134.37Z"
android:fillColor="@color/settingslib_materialColorOnPrimaryContainer"/>
<path
android:pathData="M247.95,573.83H132.05C119.15,573.83 108.65,563.33 108.65,550.43V238.19C108.65,225.29 119.15,214.79 132.05,214.79H247.95C260.85,214.79 271.35,225.29 271.35,238.19V550.43C271.35,563.33 260.85,573.83 247.95,573.83ZM132.07,218.02C120.94,218.02 111.89,227.07 111.89,238.19V550.43C111.89,561.55 120.94,570.6 132.07,570.6H247.96C259.08,570.6 268.13,561.55 268.13,550.43V238.19C268.13,227.07 259.08,218.02 247.96,218.02H132.07Z"
android:fillColor="@color/settingslib_materialColorOutline"/>
<path
android:pathData="M247.95,218.02H132.07C120.93,218.02 111.9,227.05 111.9,238.19V550.42C111.9,561.56 120.93,570.59 132.07,570.59H247.95C259.08,570.59 268.12,561.56 268.12,550.42V238.19C268.12,227.05 259.08,218.02 247.95,218.02Z"
android:fillColor="@color/settingslib_materialColorSurfaceContainerLowest"/>
<path
android:pathData="M133.01,242.02L247.01,242.02A8,8 0,0 1,255.01 250.02L255.01,283.02A8,8 0,0 1,247.01 291.02L133.01,291.02A8,8 0,0 1,125.01 283.02L125.01,250.02A8,8 0,0 1,133.01 242.02z"
android:fillColor="@color/settingslib_materialColorSurfaceContainer"/>
</group>
</vector>