mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +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.6 KiB
XML
33 lines
1.6 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="M12.28,15.19l-0.07,-0.05c-0.61,-0.49 -1.15,-1.05 -1.65,-1.63c-1.05,-1.22 -1.88,-2.63 -2.39,-4.17H5.83c0.54,2.17 1.58,4.16 3.01,5.85l-5.93,5.23l1.75,1.75l5.91,-5.26c0.05,0.04 0.1,0.09 0.15,0.13l3.42,2.79l1.02,-2.33L12.28,15.19z"
|
|
android:fillColor="#FBBC04"/>
|
|
<path
|
|
android:pathData="M21.58,11.67h-2.33l-5.25,14h2.33l1.31,-3.5h5.54l1.32,3.5h2.33L21.58,11.67zM18.53,19.83l1.89,-5.05l1.89,5.05H18.53z"
|
|
android:fillColor="#4285F4"/>
|
|
<path
|
|
android:pathData="M11.67,2.33l-2.34,0l0,2.34l-8.16,0l0,2.33l10.5,0l0,-2.33z"
|
|
android:fillColor="#EA4335"/>
|
|
<path
|
|
android:pathData="M11.67,4.67V7H14c-0.61,2.42 -1.79,4.65 -3.44,6.5c0.5,0.59 1.04,1.15 1.65,1.63l0.07,0.05c2.03,-2.32 3.44,-5.14 4.05,-8.19h3.5V4.67H11.67z"
|
|
android:fillColor="#34A853"/>
|
|
</vector>
|