mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
When desktop stashed state changes, show a persistent popup on home screen to select an app that will be launched on desktop. Flag: persist.wm.debug.desktop_mode_2 Bug: 261234402 Test: launch an app on desktop, swipe home, observe the popup, launch an app, observe app is launched on desktop and popup is hidden Test: stash desktop apps by going home while on desktop, press on the "exit desktop" button in the popup, observe popup is hidden, launch an app, observe it is launched in fullscreen Change-Id: I66fe0ab977fa7b2059f149d7d0ab0cf92192c967
57 lines
2.7 KiB
XML
57 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Copyright (C) 2023 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.
|
|
-->
|
|
|
|
<com.android.quickstep.views.DesktopAppSelectView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/desktop_mode_floating_app_select_height"
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:background="@drawable/bg_floating_desktop_select"
|
|
android:elevation="@dimen/desktop_mode_floating_app_select_elevation"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/desktop_app_select_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/desktop_mode_floating_app_select_text_margin"
|
|
android:layout_marginStart="@dimen/desktop_mode_floating_app_select_margin"
|
|
android:drawablePadding="@dimen/desktop_mode_floating_app_select_text_margin"
|
|
android:drawableStart="@drawable/ic_desktop"
|
|
android:drawableTint="?androidprv:attr/materialColorOnPrimaryContainer"
|
|
android:fontFamily="google-sans-medium"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/desktop_select_app_toast"
|
|
android:textColor="?androidprv:attr/materialColorOnPrimaryContainer"
|
|
android:textSize="@dimen/desktop_mode_floating_app_select_text_size" />
|
|
|
|
<Button
|
|
android:id="@+id/close_button"
|
|
style="@android:style/Widget.DeviceDefault.Button.Borderless"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/desktop_mode_floating_app_select_margin"
|
|
android:minWidth="0dp"
|
|
android:fontFamily="google-sans-medium"
|
|
android:text="@string/desktop_button_close_app_toast"
|
|
android:textAllCaps="false"
|
|
android:textColor="?androidprv:attr/materialColorPrimary"
|
|
android:textSize="@dimen/desktop_mode_floating_app_select_text_size" />
|
|
|
|
</com.android.quickstep.views.DesktopAppSelectView>
|