mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 02:10:54 +02:00
action: lock screen
This commit is contained in:
parent
6cabcf51bd
commit
9bc8d6bb6d
6 changed files with 110 additions and 5 deletions
10
app/src/main/res/drawable/baseline_lock_24px.xml
Normal file
10
app/src/main/res/drawable/baseline_lock_24px.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M240,880Q207,880 183.5,856.5Q160,833 160,800L160,400Q160,367 183.5,343.5Q207,320 240,320L280,320L280,240Q280,157 338.5,98.5Q397,40 480,40Q563,40 621.5,98.5Q680,157 680,240L680,320L720,320Q753,320 776.5,343.5Q800,367 800,400L800,800Q800,833 776.5,856.5Q753,880 720,880L240,880ZM240,800L720,800Q720,800 720,800Q720,800 720,800L720,400Q720,400 720,400Q720,400 720,400L240,400Q240,400 240,400Q240,400 240,400L240,800Q240,800 240,800Q240,800 240,800ZM480,680Q513,680 536.5,656.5Q560,633 560,600Q560,567 536.5,543.5Q513,520 480,520Q447,520 423.5,543.5Q400,567 400,600Q400,633 423.5,656.5Q447,680 480,680ZM360,320L600,320L600,240Q600,190 565,155Q530,120 480,120Q430,120 395,155Q360,190 360,240L360,320ZM240,800Q240,800 240,800Q240,800 240,800L240,400Q240,400 240,400Q240,400 240,400L240,400Q240,400 240,400Q240,400 240,400L240,800Q240,800 240,800Q240,800 240,800Z"/>
|
||||
</vector>
|
|
@ -1,13 +1,18 @@
|
|||
<resources>
|
||||
<!--
|
||||
-
|
||||
- Home
|
||||
-
|
||||
-->
|
||||
<string name="accessibility_service_description">Enable lock screen action</string>
|
||||
<!--
|
||||
-
|
||||
- Home
|
||||
-
|
||||
-->
|
||||
<string name="alert_cant_open_title">Can\'t open app</string>
|
||||
<string name="alert_cant_open_message">Want to change its settings?</string>
|
||||
<string name="alert_lock_screen_failed">Failed to lock screen</string>
|
||||
|
||||
|
||||
<string name="toast_cant_open_message">Open settings to choose an action for this gesture</string>
|
||||
<string name="toast_accessibility_service_not_enabled">μLauncher\'s accessibility service is not enabled. Please enable it in settings</string>
|
||||
<string name="toast_lock_screen_not_supported">Sorry, lock screen is available on Android 9+</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
@ -175,6 +180,7 @@
|
|||
<string name="list_other_track_previous">Music: Previous</string>
|
||||
<string name="list_other_expand_notifications_panel">Expand notifications panel</string>
|
||||
<string name="list_other_nop">Do nothing</string>
|
||||
<string name="list_other_lock_screen">Lock Screen</string>
|
||||
|
||||
<!--
|
||||
-
|
||||
|
|
7
app/src/main/res/xml/accessibility_service_config.xml
Normal file
7
app/src/main/res/xml/accessibility_service_config.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accessibilityEventTypes="typeAllMask"
|
||||
android:accessibilityFeedbackType="feedbackAllMask"
|
||||
android:accessibilityFlags="flagDefault"
|
||||
android:description="@string/accessibility_service_description"
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue