summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2022-02-14 23:42:31 +0000
committerBruno Martins <bgcngm@gmail.com>2022-02-15 01:18:52 +0100
commit87fbc8b88632da97a631824a3c9dac430b5c2ee7 (patch)
tree7334238fc7e7a7bafef79026666f5f0738092657
parent677b3d20db26c89b9267aee9891a72bcb6e174c9 (diff)
pro1: devicesettings: Delete no longer used icon
In order not to break search indexables provider, add a dummy one and replace the reference to the one being removed. Change-Id: I29af94d0dfaaade15fdc04dcfe6f9b313e1052df
-rw-r--r--devicesettings/AndroidManifest.xml1
-rw-r--r--devicesettings/res/drawable/ic_settings_additional_buttons.xml29
-rw-r--r--devicesettings/res/drawable/ic_settings_dummy.xml11
-rw-r--r--devicesettings/src/org/lineageos/settings/device/DeviceSettingsSearchIndexablesProvider.java6
4 files changed, 14 insertions, 33 deletions
diff --git a/devicesettings/AndroidManifest.xml b/devicesettings/AndroidManifest.xml
index aff3056..3b98634 100644
--- a/devicesettings/AndroidManifest.xml
+++ b/devicesettings/AndroidManifest.xml
@@ -74,7 +74,6 @@
<activity
android:name=".TouchscreenSettingsActivity"
android:label="@string/touchscreen_settings_title"
- android:icon="@drawable/ic_settings_additional_buttons"
android:theme="@style/Theme.Main">
<intent-filter>
<action android:name="com.android.settings.action.IA_SETTINGS" />
diff --git a/devicesettings/res/drawable/ic_settings_additional_buttons.xml b/devicesettings/res/drawable/ic_settings_additional_buttons.xml
deleted file mode 100644
index beaf143..0000000
--- a/devicesettings/res/drawable/ic_settings_additional_buttons.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (c) 2017-2020 The LineageOS 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"
- android:viewportHeight="24"
- android:tint="?android:attr/colorControlNormal">
-
- <path
- android:fillColor="@android:color/white"
- android:pathData="M17,1L7,1C5.9,1,5,1.9,5,3v2h2v4H5v12c0,1.1,0.9,2,2,2h10c1.1,0,2-0.9,2-2V3C19,1.9,18.1,1,17,1z
-M11,21H7v-2h4V21z M17,21 h-4v-2h4V21z" />
-</vector>
diff --git a/devicesettings/res/drawable/ic_settings_dummy.xml b/devicesettings/res/drawable/ic_settings_dummy.xml
new file mode 100644
index 0000000..96bfcf7
--- /dev/null
+++ b/devicesettings/res/drawable/ic_settings_dummy.xml
@@ -0,0 +1,11 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="?android:attr/colorControlNormal">
+
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M15.95,10.78c0.03,-0.25 0.05,-0.51 0.05,-0.78s-0.02,-0.53 -0.06,-0.78l1.69,-1.32c0.15,-0.12 0.19,-0.34 0.1,-0.51l-1.6,-2.77c-0.1,-0.18 -0.31,-0.24 -0.49,-0.18l-1.99,0.8c-0.42,-0.32 -0.86,-0.58 -1.35,-0.78L12,2.34c-0.03,-0.2 -0.2,-0.34 -0.4,-0.34H8.4c-0.2,0 -0.36,0.14 -0.39,0.34l-0.3,2.12c-0.49,0.2 -0.94,0.47 -1.35,0.78l-1.99,-0.8c-0.18,-0.07 -0.39,0 -0.49,0.18l-1.6,2.77c-0.1,0.18 -0.06,0.39 0.1,0.51l1.69,1.32c-0.04,0.25 -0.07,0.52 -0.07,0.78s0.02,0.53 0.06,0.78L2.37,12.1c-0.15,0.12 -0.19,0.34 -0.1,0.51l1.6,2.77c0.1,0.18 0.31,0.24 0.49,0.18l1.99,-0.8c0.42,0.32 0.86,0.58 1.35,0.78l0.3,2.12c0.04,0.2 0.2,0.34 0.4,0.34h3.2c0.2,0 0.37,-0.14 0.39,-0.34l0.3,-2.12c0.49,-0.2 0.94,-0.47 1.35,-0.78l1.99,0.8c0.18,0.07 0.39,0 0.49,-0.18l1.6,-2.77c0.1,-0.18 0.06,-0.39 -0.1,-0.51l-1.67,-1.32zM10,13c-1.65,0 -3,-1.35 -3,-3s1.35,-3 3,-3 3,1.35 3,3 -1.35,3 -3,3z"/>
+</vector>
diff --git a/devicesettings/src/org/lineageos/settings/device/DeviceSettingsSearchIndexablesProvider.java b/devicesettings/src/org/lineageos/settings/device/DeviceSettingsSearchIndexablesProvider.java
index 345ccc9..442e242 100644
--- a/devicesettings/src/org/lineageos/settings/device/DeviceSettingsSearchIndexablesProvider.java
+++ b/devicesettings/src/org/lineageos/settings/device/DeviceSettingsSearchIndexablesProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2018-2019 The LineageOS Project
+ * Copyright (C) 2020,2022 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,10 +40,10 @@ public class DeviceSettingsSearchIndexablesProvider extends SearchIndexablesProv
private static SearchIndexableResource[] INDEXABLE_RES = new SearchIndexableResource[]{
new SearchIndexableResource(1, R.xml.keyboard_panel,
KeyboardSettingsActivity.class.getName(),
- R.drawable.ic_settings_additional_buttons),
+ R.drawable.ic_settings_dummy),
new SearchIndexableResource(1, R.xml.touchscreen_panel,
TouchscreenSettingsActivity.class.getName(),
- R.drawable.ic_settings_additional_buttons),
+ R.drawable.ic_settings_dummy),
};
@Override