Double Tap to Lock Screen gesture implemented

This commit is contained in:
ottoptj 2024-08-06 20:27:15 +03:00
commit c6f3d537f6
6 changed files with 118 additions and 3 deletions

View file

@ -35,7 +35,8 @@
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/Theme.YamLauncher"
android:windowSoftInputMode="adjustResize">
android:windowSoftInputMode="adjustResize"
tools:ignore="DiscouragedApi,LockedOrientationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -44,6 +45,18 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:name=".ScreenLockService"
android:exported="false"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
<meta-data
android:name="android.screenLockService"
android:resource="@xml/screenlock_service_config" />
</service>
</application>
</manifest>