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

Commit b212fee7 authored by Riley Jones's avatar Riley Jones
Browse files

Added Settings page for AccessibilityMenu

Bug: 261252772
Test: Install apk, then navigate to AccessibilityMenu settings.
Change-Id: I89c792819a0fbadc899db5585295f0ddf8d0083b
parent 0d5da421
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ android_app {
    static_libs: [
        "androidx.coordinatorlayout_coordinatorlayout",
        "androidx.core_core",
        "androidx.preference_preference",
        "androidx.viewpager_viewpager",
        "SettingsLibDisplayUtils",
    ],
+22 −0
Original line number Diff line number Diff line
@@ -33,5 +33,27 @@
                android:name="android.accessibilityservice"
                android:resource="@xml/accessibilitymenu_service"/>
        </service>

        <!-- Accessibility Menu Settings -->
        <activity
            android:name="com.android.systemui.accessibility.accessibilitymenu.activity.A11yMenuSettingsActivity"
            android:exported="true"
            android:label="@string/accessibility_menu_settings_name"
            android:launchMode="singleTop"
            android:theme="@style/AccessibilityMenuSettings">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.accessibilityservice.SERVICE_SETTINGS"/>
            </intent-filter>
        </activity>
    </application>

    <queries>
        <intent>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="https" />
        </intent>
    </queries>
</manifest>
 No newline at end of file
+2 −6
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <!-- user customized shortcuts preference -->
  <string name="pref_user_shortcuts">accessibility_menu_user_shortcuts</string>
  <!-- key for user customized shortcuts -->
  <string name="pref_user_shortcuts_key">pref_user_shortcuts_key</string>
  <!-- value for empty shortcut -->
  <string name="pref_user_shortcuts_value_empty">[]</string>
  <!-- empty string for shortcut label -->
  <string name="empty_content"></string>

@@ -14,4 +8,6 @@
  <!-- key for Help&feedback settings [CHAR_LIMIT=NONE] -->
  <string name="pref_help">pref_help</string>

  <!-- url for help page -->
  <string name="help_url">https://support.google.com/accessibility/android/answer/9078941</string>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

<resources>
  <!--The theme is for preference CollapsingToolbarBaseActivity settings-->
  <style name="AccessibilityMenuSettings" parent="android:Theme.DeviceDefault.Light" />
  <style name="AccessibilityMenuSettings" parent="android:Theme.DeviceDefault.DayNight" />

  <!--Adds the theme to support SnackBar component and user configurable theme. -->
  <style name="ServiceTheme" parent="android:Theme.DeviceDefault.Light">
+33 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2023 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.
  -->

<androidx.preference.PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <SwitchPreference
        android:defaultValue="false"
        android:key="@string/pref_large_buttons"
        android:persistent="true"
        android:summary="@string/accessibility_menu_large_buttons_summary"
        android:title="@string/accessibility_menu_large_buttons_title"/>

    <Preference
        android:key="@string/pref_help"
        android:title="@string/pref_help_and_feedback_title"/>

</androidx.preference.PreferenceScreen>
 No newline at end of file
Loading