Update the Storage icons.
Change-Id: I10648df80566629c09d03211ed642516595e4b22 Fixes: 62548249 Test: Manual
This commit is contained in:
@@ -20,6 +20,6 @@
|
|||||||
android:viewportHeight="24.0"
|
android:viewportHeight="24.0"
|
||||||
android:tint="?android:attr/colorControlNormal">
|
android:tint="?android:attr/colorControlNormal">
|
||||||
<path
|
<path
|
||||||
android:fillColor="@android:color/white"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M12,3v10.55c-0.59,-0.34 -1.27,-0.55 -2,-0.55 -2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4V7h4V3h-6z"/>
|
android:pathData="M18,3v2h-2V3H8v2H6V3H5C4.45,3 4,3.45 4,4v16c0,0.55 0.45,1 1,1h1v-2h2v2h8v-2h2v2h1c0.55,0 1,-0.45 1,-1V4c0,-0.55 -0.45,-1 -1,-1H18zM8,17H6v-2h2V17zM8,13H6v-2h2V13zM8,9H6V7h2V9zM18,17h-2v-2h2V17zM18,13h-2v-2h2V13zM18,9h-2V7h2V9z"/>
|
||||||
</vector>
|
</vector>
|
@@ -20,6 +20,6 @@
|
|||||||
android:viewportHeight="24.0"
|
android:viewportHeight="24.0"
|
||||||
android:tint="?android:attr/colorControlNormal">
|
android:tint="?android:attr/colorControlNormal">
|
||||||
<path
|
<path
|
||||||
android:fillColor="@android:color/white"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M4,8h4L8,4L4,4v4zM10,20h4v-4h-4v4zM4,20h4v-4L4,16v4zM4,14h4v-4L4,10v4zM10,14h4v-4h-4v4zM16,4v4h4L20,4h-4zM10,8h4L14,4h-4v4zM16,14h4v-4h-4v4zM16,20h4v-4h-4v4z"/>
|
android:pathData="M18,3h-5c-0.55,0 -1,0.45 -1,1v8.3a3.88,3.88 0,0 0,-2.9 -0.04c-1.79,0.67 -3.11,2.35 -3.1,4.26A4.483,4.483 0,0 0,10.5 21c2.5,0 4.5,-2.3 4.5,-4.5V6h3c0.55,0 1,-0.45 1,-1V4c0,-0.55 -0.45,-1 -1,-1z"/>
|
||||||
</vector>
|
</vector>
|
@@ -20,6 +20,6 @@
|
|||||||
android:viewportHeight="24.0"
|
android:viewportHeight="24.0"
|
||||||
android:tint="?android:attr/colorControlNormal">
|
android:tint="?android:attr/colorControlNormal">
|
||||||
<path
|
<path
|
||||||
android:fillColor="@android:color/white"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M22,16L22,4c0,-1.1 -0.9,-2 -2,-2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zM11,12l2.03,2.71L16,11l4,5L8,16l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6L2,6z"/>
|
android:pathData="M22,16V4c0,-1.11 -0.9,-2 -2,-2H8C6.89,2 6,2.89 6,4v12c0,1.1 0.89,2 2,2h12C21.1,18 22,17.1 22,16zM11,12l2.03,2.71L16,11l4,5H8L11,12zM2,7v13c0,1.1 0.9,2 2,2h13c0.55,0 1,-0.45 1,-1v0c0,-0.55 -0.45,-1 -1,-1H4.5C4.22,20 4,19.78 4,19.5V7c0,-0.55 -0.45,-1 -1,-1h0C2.45,6 2,6.45 2,7z"/>
|
||||||
</vector>
|
</vector>
|
@@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
Copyright (C) 2016 The Android Open Source Project
|
Copyright (C) 2017 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@@ -14,12 +14,12 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24.0dp"
|
android:width="24dp"
|
||||||
android:height="24.0dp"
|
android:height="24dp"
|
||||||
android:viewportWidth="24.0"
|
android:viewportWidth="24.0"
|
||||||
android:viewportHeight="24.0"
|
android:viewportHeight="24.0"
|
||||||
android:tint="?android:attr/colorControlNormal">
|
android:tint="?android:attr/colorControlNormal">
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FFFFFFFF"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M2.0,20.0l20.0,0.0l0.0,-4.0L2.0,16.0l0.0,4.0zm2.0,-3.0l2.0,0.0l0.0,2.0L4.0,19.0l0.0,-2.0zM2.0,4.0l0.0,4.0l20.0,0.0L22.0,4.0L2.0,4.0zm4.0,3.0L4.0,7.0L4.0,5.0l2.0,0.0l0.0,2.0zm-4.0,7.0l20.0,0.0l0.0,-4.0L2.0,10.0l0.0,4.0zm2.0,-3.0l2.0,0.0l0.0,2.0L4.0,13.0l0.0,-2.0z"/>
|
android:pathData="M20,16L4,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2h16c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2zM5,19.1c-0.61,0 -1.1,-0.49 -1.1,-1.1 0,-0.61 0.49,-1.1 1.1,-1.1s1.1,0.49 1.1,1.1c0,0.61 -0.49,1.1 -1.1,1.1zM4,8h16c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2L4,4c-1.1,0 -2,0.9 -2,2s0.9,2 2,2zM5,4.9c0.61,0 1.1,0.49 1.1,1.1 0,0.61 -0.49,1.1 -1.1,1.1S3.9,6.61 3.9,6c0,-0.61 0.49,-1.1 1.1,-1.1zM20,10L4,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2h16c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2zM5,13.1c-0.61,0 -1.1,-0.49 -1.1,-1.1 0,-0.61 0.49,-1.1 1.1,-1.1s1.1,0.49 1.1,1.1c0,0.61 -0.49,1.1 -1.1,1.1z"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
@@ -20,6 +20,6 @@
|
|||||||
android:viewportHeight="24.0"
|
android:viewportHeight="24.0"
|
||||||
android:tint="?android:attr/colorControlNormal">
|
android:tint="?android:attr/colorControlNormal">
|
||||||
<path
|
<path
|
||||||
android:fillColor="@android:color/white"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M18,3v2h-2L16,3L8,3v2L6,5L6,3L4,3v18h2v-2h2v2h8v-2h2v2h2L20,3h-2zM8,17L6,17v-2h2v2zM8,13L6,13v-2h2v2zM8,9L6,9L6,7h2v2zM18,17h-2v-2h2v2zM18,13h-2v-2h2v2zM18,9h-2L16,7h2v2z"/>
|
android:pathData="M20,16L4,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2h16c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2zM5,19.1c-0.61,0 -1.1,-0.49 -1.1,-1.1 0,-0.61 0.49,-1.1 1.1,-1.1s1.1,0.49 1.1,1.1c0,0.61 -0.49,1.1 -1.1,1.1zM4,8h16c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2L4,4c-1.1,0 -2,0.9 -2,2s0.9,2 2,2zM5,4.9c0.61,0 1.1,0.49 1.1,1.1 0,0.61 -0.49,1.1 -1.1,1.1S3.9,6.61 3.9,6c0,-0.61 0.49,-1.1 1.1,-1.1zM20,10L4,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2h16c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2zM5,13.1c-0.61,0 -1.1,-0.49 -1.1,-1.1 0,-0.61 0.49,-1.1 1.1,-1.1s1.1,0.49 1.1,1.1c0,0.61 -0.49,1.1 -1.1,1.1z"/>
|
||||||
</vector>
|
</vector>
|
25
res/drawable/ic_storage_apps.xml
Normal file
25
res/drawable/ic_storage_apps.xml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<!--
|
||||||
|
Copyright (C) 2017 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="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0"
|
||||||
|
android:tint="?android:attr/colorControlNormal">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M6,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM16,6c0,1.1 0.9,2 2,2s2,-0.9 2,-2 -0.9,-2 -2,-2 -2,0.9 -2,2zM12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2z"/>
|
||||||
|
</vector>
|
@@ -26,20 +26,20 @@
|
|||||||
android:fragment="com.android.settings.deletionhelper.AutomaticStorageManagerSettings"
|
android:fragment="com.android.settings.deletionhelper.AutomaticStorageManagerSettings"
|
||||||
android:key="toggle_asm"
|
android:key="toggle_asm"
|
||||||
android:title="@string/automatic_storage_manager_preference_title"
|
android:title="@string/automatic_storage_manager_preference_title"
|
||||||
android:icon="@drawable/ic_settings_storage"
|
android:icon="@drawable/ic_storage"
|
||||||
android:order="1"
|
android:order="1"
|
||||||
settings:allowDividerAbove="true"
|
settings:allowDividerAbove="true"
|
||||||
settings:allowDividerBelow="true"/>
|
settings:allowDividerBelow="true"/>
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_photos_videos"
|
android:key="pref_photos_videos"
|
||||||
android:title="@string/storage_photos_videos"
|
android:title="@string/storage_photos_videos"
|
||||||
android:icon="@drawable/ic_photo_library_vd_theme_24"
|
android:icon="@drawable/ic_photo_library"
|
||||||
settings:allowDividerAbove="true"
|
settings:allowDividerAbove="true"
|
||||||
android:order="2" />
|
android:order="2" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_music_audio"
|
android:key="pref_music_audio"
|
||||||
android:title="@string/storage_music_audio"
|
android:title="@string/storage_music_audio"
|
||||||
android:icon="@drawable/ic_music_note_vd_theme_24"
|
android:icon="@drawable/ic_media_stream"
|
||||||
android:order="3" />
|
android:order="3" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_games"
|
android:key="pref_games"
|
||||||
@@ -49,12 +49,12 @@
|
|||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_movies"
|
android:key="pref_movies"
|
||||||
android:title="@string/storage_movies_tv"
|
android:title="@string/storage_movies_tv"
|
||||||
android:icon="@drawable/ic_theaters_vd_theme_24"
|
android:icon="@drawable/ic_local_movies"
|
||||||
android:order="5" />
|
android:order="5" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_other_apps"
|
android:key="pref_other_apps"
|
||||||
android:title="@string/storage_other_apps"
|
android:title="@string/storage_other_apps"
|
||||||
android:icon="@drawable/ic_apps_vd_theme_24"
|
android:icon="@drawable/ic_storage_apps"
|
||||||
android:order="6" />
|
android:order="6" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_files"
|
android:key="pref_files"
|
||||||
|
@@ -21,12 +21,12 @@
|
|||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_photos_videos"
|
android:key="pref_photos_videos"
|
||||||
android:title="@string/storage_photos_videos"
|
android:title="@string/storage_photos_videos"
|
||||||
android:icon="@drawable/ic_photo_library_vd_theme_24"
|
android:icon="@drawable/ic_photo_library"
|
||||||
android:order="2" />
|
android:order="2" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_music_audio"
|
android:key="pref_music_audio"
|
||||||
android:title="@string/storage_music_audio"
|
android:title="@string/storage_music_audio"
|
||||||
android:icon="@drawable/ic_music_note_vd_theme_24"
|
android:icon="@drawable/ic_media_stream"
|
||||||
android:order="3" />
|
android:order="3" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_games"
|
android:key="pref_games"
|
||||||
@@ -36,13 +36,13 @@
|
|||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_movies"
|
android:key="pref_movies"
|
||||||
android:title="@string/storage_movies_tv"
|
android:title="@string/storage_movies_tv"
|
||||||
android:icon="@drawable/ic_theaters_vd_theme_24"
|
android:icon="@drawable/ic_local_movies"
|
||||||
android:order="5"
|
android:order="5"
|
||||||
/>
|
/>
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_other_apps"
|
android:key="pref_other_apps"
|
||||||
android:title="@string/storage_other_apps"
|
android:title="@string/storage_other_apps"
|
||||||
android:icon="@drawable/ic_apps_vd_theme_24"
|
android:icon="@drawable/ic_storage_apps"
|
||||||
android:order="6" />
|
android:order="6" />
|
||||||
<com.android.settings.deviceinfo.StorageItemPreference
|
<com.android.settings.deviceinfo.StorageItemPreference
|
||||||
android:key="pref_files"
|
android:key="pref_files"
|
||||||
|
@@ -298,19 +298,19 @@ public class StorageItemPreferenceControllerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void settingUserIdAppliesNewIcons() {
|
public void settingUserIdAppliesNewIcons() {
|
||||||
StorageItemPreference audio = spy(new StorageItemPreference(mContext));
|
StorageItemPreference audio = spy(new StorageItemPreference(mContext));
|
||||||
audio.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
audio.setIcon(R.drawable.ic_media_stream);
|
||||||
StorageItemPreference video = spy(new StorageItemPreference(mContext));
|
StorageItemPreference video = spy(new StorageItemPreference(mContext));
|
||||||
video.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
video.setIcon(R.drawable.ic_local_movies);
|
||||||
StorageItemPreference image = spy(new StorageItemPreference(mContext));
|
StorageItemPreference image = spy(new StorageItemPreference(mContext));
|
||||||
image.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
image.setIcon(R.drawable.ic_photo_library);
|
||||||
StorageItemPreference games = spy(new StorageItemPreference(mContext));
|
StorageItemPreference games = spy(new StorageItemPreference(mContext));
|
||||||
games.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
games.setIcon(R.drawable.ic_videogame_vd_theme_24);
|
||||||
StorageItemPreference apps = spy(new StorageItemPreference(mContext));
|
StorageItemPreference apps = spy(new StorageItemPreference(mContext));
|
||||||
apps.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
apps.setIcon(R.drawable.ic_storage_apps);
|
||||||
StorageItemPreference system = spy(new StorageItemPreference(mContext));
|
StorageItemPreference system = spy(new StorageItemPreference(mContext));
|
||||||
system.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
system.setIcon(R.drawable.ic_system_update_vd_theme_24);
|
||||||
StorageItemPreference files = spy(new StorageItemPreference(mContext));
|
StorageItemPreference files = spy(new StorageItemPreference(mContext));
|
||||||
files.setIcon(R.drawable.ic_photo_library_vd_theme_24);
|
files.setIcon(R.drawable.ic_folder_vd_theme_24);
|
||||||
PreferenceScreen screen = mock(PreferenceScreen.class);
|
PreferenceScreen screen = mock(PreferenceScreen.class);
|
||||||
when(screen.findPreference(
|
when(screen.findPreference(
|
||||||
eq(StorageItemPreferenceController.AUDIO_KEY))).thenReturn(audio);
|
eq(StorageItemPreferenceController.AUDIO_KEY))).thenReturn(audio);
|
||||||
|
Reference in New Issue
Block a user