Updated delete icon

Also remove the duplicate ic_menu_delete.xml and fix up places where it
was used.

Bug: 77982107
Test: manual
Change-Id: I23ede37b7cdf9bea59b44cd0f817bf0ad0cd1d69
This commit is contained in:
Antony Sargent
2018-05-17 11:55:40 -07:00
parent a0f9241400
commit 0d9afde271
9 changed files with 19 additions and 38 deletions

View File

@@ -16,10 +16,16 @@ Copyright (C) 2015 The Android Open Source Project
<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="24.0dp"
android:height="24.0dp" android:height="24.0dp"
android:tint="?android:attr/colorControlNormal" android:viewportWidth="24.0"
android:viewportWidth="48.0" android:viewportHeight="24.0"
android:viewportHeight="48.0"> android:tint="?android:attr/colorControlNormal">
<path <path
android:fillColor="@android:color/white" android:fillColor="#FF000000"
android:pathData="M12.0,38.0c0.0,2.21 1.79,4.0 4.0,4.0l16.0,0.0c2.21,0.0 4.0,-1.79 4.0,-4.0L36.0,14.0L12.0,14.0l0.0,24.0zM38.0,8.0l-7.0,0.0l-2.0,-2.0L19.0,6.0l-2.0,2.0l-7.0,0.0l0.0,4.0l28.0,0.0L38.0,8.0z"/> android:pathData="M15,4V3H9v1H4v2h1v13c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2V6h1V4H15zM17,19H7V6h10V19z"/>
<path
android:fillColor="#FF000000"
android:pathData="M9,8h2v9h-2z"/>
<path
android:fillColor="#FF000000"
android:pathData="M13,8h2v9h-2z"/>
</vector> </vector>

View File

@@ -1,25 +0,0 @@
<!--
Copyright (C) 2015 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="48.0"
android:viewportHeight="48.0"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12.0,38.0c0.0,2.21 1.79,4.0 4.0,4.0l16.0,0.0c2.21,0.0 4.0,-1.79 4.0,-4.0L36.0,14.0L12.0,14.0l0.0,24.0zM38.0,8.0l-7.0,0.0l-2.0,-2.0L19.0,6.0l-2.0,2.0l-7.0,0.0l0.0,4.0l28.0,0.0L38.0,8.0z"/>
</vector>

View File

@@ -52,7 +52,7 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:paddingStart="16dip" android:paddingStart="16dip"
android:paddingEnd="16dip" android:paddingEnd="16dip"
android:src="@drawable/ic_menu_delete" android:src="@drawable/ic_delete"
android:contentDescription="@string/user_delete_user_description" android:contentDescription="@string/user_delete_user_description"
android:layout_gravity="center" android:layout_gravity="center"
android:background="?android:attr/selectableItemBackground" /> android:background="?android:attr/selectableItemBackground" />

View File

@@ -85,7 +85,7 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:paddingStart="16dip" android:paddingStart="16dip"
android:paddingEnd="16dip" android:paddingEnd="16dip"
android:src="@drawable/ic_menu_delete" android:src="@drawable/ic_delete"
android:contentDescription="@string/user_delete_user_description" android:contentDescription="@string/user_delete_user_description"
android:layout_gravity="center" android:layout_gravity="center"
android:background="?android:attr/selectableItemBackground" /> android:background="?android:attr/selectableItemBackground" />

View File

@@ -25,7 +25,7 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:paddingStart="16dip" android:paddingStart="16dip"
android:paddingEnd="16dip" android:paddingEnd="16dip"
android:src="@drawable/ic_menu_delete" android:src="@drawable/ic_delete"
android:contentDescription="@string/zen_mode_delete_rule" android:contentDescription="@string/zen_mode_delete_rule"
android:layout_gravity="center" android:layout_gravity="center"
android:background="?android:attr/selectableItemBackground" /> android:background="?android:attr/selectableItemBackground" />

View File

@@ -17,7 +17,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/action_delete" <item android:id="@+id/action_delete"
android:title="@string/delete" android:title="@string/delete"
android:icon="@android:drawable/ic_menu_delete"/> android:icon="@drawable/ic_delete"/>
<item android:id="@+id/action_select_all" <item android:id="@+id/action_select_all"
android:title="@string/select_all" android:title="@string/select_all"
android:showAsAction="ifRoom" /> android:showAsAction="ifRoom" />

View File

@@ -43,7 +43,7 @@
<com.android.settingslib.RestrictedPreference <com.android.settingslib.RestrictedPreference
android:key="forget_vpn" android:key="forget_vpn"
android:title="@string/vpn_forget_long" android:title="@string/vpn_forget_long"
android:icon="@drawable/ic_menu_delete" android:icon="@drawable/ic_delete"
settings:userRestriction="no_config_vpn" settings:userRestriction="no_config_vpn"
settings:useAdminDisabledSummary="true" /> settings:useAdminDisabledSummary="true" />
</PreferenceScreen> </PreferenceScreen>

View File

@@ -361,7 +361,7 @@ public class AccountPreferenceController extends AbstractPreferenceController
RestrictedPreference preference = new RestrictedPreference( RestrictedPreference preference = new RestrictedPreference(
mParent.getPreferenceManager().getContext()); mParent.getPreferenceManager().getContext());
preference.setTitle(R.string.remove_managed_profile_label); preference.setTitle(R.string.remove_managed_profile_label);
preference.setIcon(R.drawable.ic_menu_delete); preference.setIcon(R.drawable.ic_delete);
preference.setOnPreferenceClickListener(this); preference.setOnPreferenceClickListener(this);
preference.setOrder(ORDER_LAST); preference.setOrder(ORDER_LAST);
return preference; return preference;

View File

@@ -721,7 +721,7 @@ public class ApnEditor extends SettingsPreferenceFragment
// If it's a new APN, then cancel will delete the new entry in onPause // If it's a new APN, then cancel will delete the new entry in onPause
if (!mNewApn && !mReadOnlyApn) { if (!mNewApn && !mReadOnlyApn) {
menu.add(0, MENU_DELETE, 0, R.string.menu_delete) menu.add(0, MENU_DELETE, 0, R.string.menu_delete)
.setIcon(R.drawable.ic_menu_delete); .setIcon(R.drawable.ic_delete);
} }
menu.add(0, MENU_SAVE, 0, R.string.menu_save) menu.add(0, MENU_SAVE, 0, R.string.menu_save)
.setIcon(android.R.drawable.ic_menu_save); .setIcon(android.R.drawable.ic_menu_save);