add consent dialog for accessibility service

This commit is contained in:
Josia Pietsch 2024-12-07 02:21:01 +01:00
parent 46aaa91fe9
commit 97d10d09b5
Signed by: jrpie
GPG key ID: E70B571D66986A2D
6 changed files with 98 additions and 8 deletions

View file

@ -298,4 +298,12 @@
<string name="dialog_select_color_cancel">Cancel</string>
<string name="dialog_select_color_color_hex">Color</string>
<string name="dialog_choose_color_title">Choose color</string>
<string name="dialog_consent_accessibility_privileges">I am aware that this will grant far-reaching privileges to µLauncher.</string>
<string name="dialog_consent_accessibility_other_options">I am aware that other options exist (using device administrator privileges or the power button).</string>
<string name="dialog_consent_accessibility_consent">I consent to µLauncher using the accessibility service to provide functionality unrelated to accessibility.</string>
<string name="dialog_consent_accessibility_data_collection">I consent to µLauncher not collecting any data.</string>
<string name="dialog_consent_accessibility_text"><![CDATA[You are about to activate the accessibility service. This will grant <strong>far-reaching privileges</strong> to µLauncher.<br/>µLauncher will use these privileges <strong>only to lock the screen</strong>. µLauncher <strong>will never collect any data</strong>. In particular, µLauncher does not use the accessibility service to collect any data.]]></string>
<string name="dialog_consent_accessibility_title">Activating the Accessibility Service</string>
<string name="dialog_consent_accessibility_ok">Activate Accessibility Service</string>
<string name="dialog_consent_accessibility_cancel">Cancel</string>
</resources>

View file

@ -116,19 +116,18 @@
<item name="android:textColor">#000</item>
</style>
<style name="PopupMenuCustom" parent="@android:style/Widget.PopupMenu" tools:keep="@style/PopupMenuCustom">
<item name="android:popupBackground">#252827</item>
</style>
<style name="AlertDialogCustom" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="android:textColor">#000000</item>
<item name="android:background">#ffffff</item>
<item name="android:color">#000000</item>
<item name="android:textColor">@color/text_color_toggle</item>
<item name="android:background">#ffffff</item>
</style>
<style name="AlertDialogDanger" parent="AlertDialogCustom">
<item name="buttonTint">#ff0000</item>
</style>
<!-- Set the fade in animation on all activities by default -->