Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 165ebdf5 authored by Steve Kondik's avatar Steve Kondik
Browse files

cmparts: Make CMParts searchable

 * Implement a SearchIndexablesProvider to allow the Settings app
   to crawl our resources.
 * Add all missing metadata where necessary so resources can be
   indexed.

Change-Id: Ic8f304a7995b269f476eda6306d11b366621f4b0
parent 974a0ffd
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
    <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
    <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.READ_SEARCH_INDEXABLES" />

    <uses-permission android:name="cyanogenmod.permission.BIND_CORE_SERVICE" />

@@ -60,6 +61,17 @@
            </intent-filter>
        </receiver>

        <provider android:name=".search.CMPartsSearchIndexablesProvider"
                  android:authorities="org.cyanogenmod.cmparts"
                  android:multiprocess="false"
                  android:grantUriPermissions="true"
                  android:permission="android.permission.READ_SEARCH_INDEXABLES"
                  android:exported="true">
            <intent-filter>
                <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
            </intent-filter>
        </provider>

        <!-- Privacy settings (dashboard) -->
        <activity-alias
            android:name="PrivacySettings"
+0 −5
Original line number Diff line number Diff line
@@ -19,11 +19,6 @@
        <attr name="icon" />
    </declare-styleable>

    <!-- For Search -->
    <declare-styleable name="Preference">
        <attr name="keywords" format="string" />
    </declare-styleable>

    <!-- For DotsPageIndicator -->
    <declare-styleable name="DotsPageIndicator">
        <attr name="dotDiameter" format="dimension" />
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:key="cmstats"
    android:title="@string/anonymous_statistics_title">

    <cyanogenmod.preference.CMSecureSettingSwitchPreference
+2 −2
Original line number Diff line number Diff line
@@ -17,6 +17,6 @@
<PreferenceScreen
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:key="profile_appgroups_list"
        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
        android:title="@string/profile_appgroups_title">

</PreferenceScreen>
+2 −3
Original line number Diff line number Diff line
@@ -14,8 +14,7 @@
     limitations under the License.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
            android:key="general_section"
Loading