Files
kdeconnect-android/res/xml/runcommand_preferences.xml
Philip Cohn-Cort 548b636f32 Better device controls
## Summary

This contains some minor code quality improvements in
`RunCommandControlsProviderService`, as well as the following feature changes:

* If the device for a Device Control is reachable, clicking on the secondary
  space of the control will launch RunCommandActivity. If the device isn't
  reachable, we launch the MainActivity like usual.
* Pixel 7 and other modern Google devices can now show KDE Connect commands
  in the 'Home' quick access tile (you still have to 'add app')

## Test Plan

0. Make sure your Android OS supports Device Controls (Android 11+)
1. Choose a paired device to work with
2. Place at least one command in the Run Command list
3. Enable the command in the Device Controls screen
4. Test what happens when you click on the secondary space of the control
2023-10-23 21:58:08 +00:00

33 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2023 Philip Cohn-Cort <cliabhach@gmail.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:keep="@xml/runcommand_preferences">
<org.kde.kdeconnect.Helpers.LongSummaryPreferenceCategory
android:title="@string/runcommand_category_device_controls_title"
android:key="@string/runcommand_category_device_controls"
android:summary="@string/runcommand_device_controls_summary"
>
<SwitchPreference
android:id="@+id/runcommand_name_as_title_preference"
android:defaultValue="true"
android:key="@string/set_runcommand_name_as_title"
android:summary="Name -> title"
android:summaryOff="Name -> subtitle"
android:title="@string/runcommand_name_as_title_title"
/>
</org.kde.kdeconnect.Helpers.LongSummaryPreferenceCategory>
</PreferenceScreen>