Merge "Add a setting to turn clipboard access notifications on/off." into sc-dev

This commit is contained in:
Oli Lan
2021-03-20 12:07:41 +00:00
committed by Android (Google) Code Review
4 changed files with 169 additions and 0 deletions

View File

@@ -12922,4 +12922,10 @@
<!-- Label for extra app info settings for a specific app [CHAR LIMIT=40] -->
<string name="extra_app_info_label" translatable="false"></string>
<!-- Title for toggle controlling whether notifications are shown when an app pastes from clipboard. [CHAR LIMIT=50] -->
<string name="show_clip_access_notification">Copy &amp; paste notifications</string>
<!-- Summary for toggle controlling whether notifications are shown when an app pastes from clipboard. [CHAR LIMIT=NONE] -->
<string name="show_clip_access_notification_summary">Show a message when apps access text or data you have copied</string>
</resources>

View File

@@ -116,4 +116,11 @@
settings:controller="com.android.settings.privacy.EnableContentCaptureWithServiceSettingsPreferenceController">
</com.android.settings.widget.PrimarySwitchPreference>
<!-- Clipboard access notifications -->
<SwitchPreference
android:key="show_clip_access_notification"
android:title="@string/show_clip_access_notification"
android:summary="@string/show_clip_access_notification_summary"
settings:controller="com.android.settings.privacy.ShowClipAccessNotificationPreferenceController"/>
</PreferenceScreen>