mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
The buttons send Intents to the designated app (specified by niu_actions_package) to do the following: Listen - Read the contents of the screen aloud Translate - Translate the contents of the screen Search - Perform a visual search on the contents of the screen The Intents also include (via URI) the screenshot of current app used as a thumbnail by Recents. The feature is controlled by the enable_niu_actions flag, set to false here. Both this flag and the niu_actions_package String must be set for a given Launcher to use these buttons. Bug: 177955244 Bug: 177955748 Test: Manual (enabled on LauncherGoGoogle and sent Intents to demo Lens app) Change-Id: I3d1f870bb176ed0cbae637a45c072bd8acac1d4b
33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<!-- Copyright (C) 2021 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:width="28dp"
|
|
android:height="28dp"
|
|
android:viewportWidth="28"
|
|
android:viewportHeight="28">
|
|
<path
|
|
android:pathData="M24.5,22.75l-6.84,-6.84c1,-1.35 1.59,-3.02 1.59,-4.83h-2.33c0,3.22 -2.62,5.83 -5.83,5.83v2.33c1.81,0 3.47,-0.6 4.83,-1.59l6.84,6.84L24.5,22.75z"
|
|
android:fillColor="#4285F4"/>
|
|
<path
|
|
android:pathData="M11.08,2.92v2.33c3.22,0 5.83,2.62 5.83,5.83h2.33C19.25,6.57 15.59,2.92 11.08,2.92z"
|
|
android:fillColor="#34A853"/>
|
|
<path
|
|
android:pathData="M5.25,11.08H2.92c0,4.51 3.66,8.17 8.17,8.17v-2.33C7.87,16.92 5.25,14.3 5.25,11.08z"
|
|
android:fillColor="#EA4335"/>
|
|
<path
|
|
android:pathData="M2.92,11.08h2.33c0,-3.22 2.62,-5.83 5.83,-5.83V2.92C6.57,2.92 2.92,6.57 2.92,11.08z"
|
|
android:fillColor="#FBBC04"/>
|
|
</vector>
|