mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
- When battery saver changes, WallpaperThemeManager always recreate activity to reapply theme base on wallpaper color hint changes - Battery saver change can also result in light/dark theme changes, for which WallpaperThemeManager also recreate activity to apply theme changes - As a result, it'll be much simpler to recreate activity whenever isBlurEnabled changes - Exposed recreateToUpdateTheme API from WallpaperThemeManager to achieved this - Greatly simplified Overview styling to read from styles Reland fix: - Removed mBlursEnabled in BaseDepthController, and only use `mCrossWindowBlursEnabled` to control swapping between blur style and fallback style - Temporary variables like `mPauseBlurs` and `hasOpaqueBg` should only affect if blurs are applied, but not result in swapping of blur style, otherwise this cause unnecessary redraw or activity recreate Reason for revert: reland Reverted changes: /q/submissionid:33581402-revert-33554447-b/414789280-CTVRJLPLRT Bug: 414789280 Test: manually toggling battery saver and light/dark theme and WallpaperThemeManagerTest Test: PressBackFromLaunchedApp.testPressBackFromLaunchedApp Flag: EXEMPT bugfix Change-Id: Iac2b0c00811e0e79684da0cf77df76a120c1272a
60 lines
2.4 KiB
XML
60 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2020 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.OverviewActionsView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
android:theme="?attr/overviewActionsContainerStyle"
|
|
tools:ignore="ButtonStyle">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/action_buttons"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/overview_actions_height"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/action_screenshot"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@drawable/ic_screenshot"
|
|
android:text="@string/action_screenshot" />
|
|
|
|
<Button
|
|
android:id="@+id/action_split"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/overview_actions_button_spacing"
|
|
android:text="@string/action_split"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Currently, the only "group action button" is this save app pair button. If more are added,
|
|
a new LinearLayout may be needed to contain them, but beware of increased memory usage. -->
|
|
<Button
|
|
android:id="@+id/action_save_app_pair"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/action_save_app_pair"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:visibility="gone" />
|
|
|
|
</com.android.quickstep.views.OverviewActionsView> |