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

Commit 0e2ab4f8 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

New top-level Dock in Settings and a Dock Settings screen with Audio item. #2367275

Add a new top-level setting for car/desktop dock settings.
Sub menu contains one item - Audio (settings)
Sub text for Audio shows current docked status and launches either the
 audio settings or a dialog saying that you're not docked and you need to
 buy a new dock from Google (kidding).
parent 01a868d7
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -232,6 +232,19 @@
            </intent-filter>
        </activity>

        <activity android:name="DockSettings"
                android:label="@string/dock_settings_title"
                android:clearTaskOnLaunch="true"
                >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="com.android.settings.DOCK_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.VOICE_LAUNCH" />
                <category android:name="com.android.settings.SHORTCUT" />
            </intent-filter>
        </activity>

        <activity android:name="DeviceInfoSettings" android:label="@string/device_info_settings"
                >
            <intent-filter>
+2 −2
Original line number Diff line number Diff line
@@ -953,7 +953,7 @@
    <!-- Dock not found dialog title -->
    <string name="dock_not_found_title">Dock not found</string>
    <!-- Dock not found dialog text -->
    <string name="dock_not_found_text">You must dock the phone to configure audio settings for that dock</string>
    <string name="dock_not_found_text">The phone must be docked to configure dock audio</string>
    
    <!-- Acounts & Sync settings screen setting option name to go into the screen for data sync settings-->
    <string name="sync_settings">Accounts &amp; sync</string>
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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.
-->

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
    android:title="@string/dock_settings_title"
    android:key="parent">

    <PreferenceScreen
        android:key="dock_audio"
        android:title="@string/dock_audio_settings_title"
        android:summary="@string/dock_settings_summary"
        android:widgetLayout="@*android:layout/preference_dialog" />

</PreferenceScreen>
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
@@ -133,6 +133,17 @@
                android:targetClass="com.android.settings.LanguageSettings" />
        </com.android.settings.IconPreferenceScreen>

        <!-- Dock -->

        <com.android.settings.IconPreferenceScreen
            android:key="dock_settings"
            android:title="@string/dock_settings">
            <intent
                android:action="android.intent.action.MAIN"
                android:targetPackage="com.android.settings"
                android:targetClass="com.android.settings.DockSettings" />
        </com.android.settings.IconPreferenceScreen>

        <!-- Accessibility feedback -->

        <com.android.settings.IconPreferenceScreen
+0 −7
Original line number Diff line number Diff line
@@ -47,13 +47,6 @@
                android:order="3"
                android:streamType="music" />

        <PreferenceScreen
                android:key="dock_settings"
                android:order="4"
                android:title="@string/dock_settings_title"
                android:summary="@string/dock_settings_summary"
                android:widgetLayout="@*android:layout/preference_dialog" />

        <com.android.settings.DefaultRingtonePreference
                android:key="ringtone"
                android:title="@string/ringtone_title"
Loading