Normalize the icons in Accessibility
The icons displayed in Accessibility are larger than others, they should be the same size as app icons. Change the drawable's icon size to fix it. Fixes: 123411506 Test: visual, rebuild Change-Id: Ib693dd2ac8e2e191e5ecb2d0d8d4fdac5a32a2de
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<vector android:height="192dp" android:viewportHeight="192.0"
|
<vector android:height="32dp" android:viewportHeight="192.0"
|
||||||
android:viewportWidth="192.0" android:width="192dp"
|
android:viewportWidth="192.0" android:width="32dp"
|
||||||
xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
|
xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<path android:fillColor="#546E7A" android:pathData="M37.2,173.6l-28.5,-90c-1.7,-5.8 0.3,-12 5,-15.6l73.6,-57.1c5.2,-4 12.5,-4 17.6,0.1L178.6,70c4.6,3.7 6.5,9.9 4.8,15.6l-28.5,88.2c-1.9,6.1 -7.4,10.2 -13.7,10.2H50.8C44.5,183.9 39,179.7 37.2,173.6z"/>
|
<path android:fillColor="#546E7A" android:pathData="M37.2,173.6l-28.5,-90c-1.7,-5.8 0.3,-12 5,-15.6l73.6,-57.1c5.2,-4 12.5,-4 17.6,0.1L178.6,70c4.6,3.7 6.5,9.9 4.8,15.6l-28.5,88.2c-1.9,6.1 -7.4,10.2 -13.7,10.2H50.8C44.5,183.9 39,179.7 37.2,173.6z"/>
|
||||||
<path android:fillAlpha="0.2" android:fillColor="#263238"
|
<path android:fillAlpha="0.2" android:fillColor="#263238"
|
||||||
|
@@ -13,8 +13,8 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<vector android:height="192dp" android:viewportHeight="192.0"
|
<vector android:height="32dp" android:viewportHeight="192.0"
|
||||||
android:viewportWidth="192.0" android:width="192dp"
|
android:viewportWidth="192.0" android:width="32dp"
|
||||||
xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
|
xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<path android:fillColor="#00BCD4" android:pathData="M37.1,173.5l-28.5,-90c-1.7,-5.8 0.3,-12 5,-15.6l73.6,-57.1c5.2,-4 12.5,-4 17.6,0.1l73.8,58.9c4.6,3.7 6.5,9.9 4.8,15.6l-28.5,88.2c-1.9,6.1 -7.4,10.2 -13.7,10.2H50.8C44.5,183.8 39,179.6 37.1,173.5z"/>
|
<path android:fillColor="#00BCD4" android:pathData="M37.1,173.5l-28.5,-90c-1.7,-5.8 0.3,-12 5,-15.6l73.6,-57.1c5.2,-4 12.5,-4 17.6,0.1l73.8,58.9c4.6,3.7 6.5,9.9 4.8,15.6l-28.5,88.2c-1.9,6.1 -7.4,10.2 -13.7,10.2H50.8C44.5,183.8 39,179.6 37.1,173.5z"/>
|
||||||
<path android:fillAlpha="0.2" android:fillColor="#263238"
|
<path android:fillAlpha="0.2" android:fillColor="#263238"
|
||||||
|
@@ -18,6 +18,8 @@ package com.android.settings.accessibility;
|
|||||||
|
|
||||||
import static android.os.Vibrator.VibrationIntensity;
|
import static android.os.Vibrator.VibrationIntensity;
|
||||||
|
|
||||||
|
import static com.android.settingslib.TwoTargetPreference.ICON_SIZE_MEDIUM;
|
||||||
|
|
||||||
import android.accessibilityservice.AccessibilityServiceInfo;
|
import android.accessibilityservice.AccessibilityServiceInfo;
|
||||||
import android.app.admin.DevicePolicyManager;
|
import android.app.admin.DevicePolicyManager;
|
||||||
import android.app.settings.SettingsEnums;
|
import android.app.settings.SettingsEnums;
|
||||||
@@ -583,6 +585,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
|
|||||||
preference.setKey(componentName.flattenToString());
|
preference.setKey(componentName.flattenToString());
|
||||||
|
|
||||||
preference.setTitle(title);
|
preference.setTitle(title);
|
||||||
|
preference.setIconSize(ICON_SIZE_MEDIUM);
|
||||||
Utils.setSafeIcon(preference, icon);
|
Utils.setSafeIcon(preference, icon);
|
||||||
final boolean serviceEnabled = enabledServices.contains(componentName);
|
final boolean serviceEnabled = enabledServices.contains(componentName);
|
||||||
String description = info.loadDescription(getPackageManager());
|
String description = info.loadDescription(getPackageManager());
|
||||||
|
Reference in New Issue
Block a user