Commit Graph

65612 Commits

Author SHA1 Message Date
nift4
d2bee69a0a Launcher3: disable live tile - fix blur flicker
As per minaripenguin's now reverted commits

Change-Id: I4fc0918e5b39d225e09841fb2dc53ff52df87932
2024-01-28 09:08:26 +08:00
Lawnchair Bot
0d0460d552 New Crowdin translations by GitHub Action (#4023)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-28 03:48:24 +03:30
MrSluffy
ee62c87746 Re-apply stretch effect in allapps 2024-01-28 07:24:26 +08:00
Goooler
7b3bb5bf3b Use gradle/actions/setup-gradle v3
https://github.com/gradle/gradle-build-action/releases/tag/v3.0.0-rc.1
2024-01-27 12:26:54 +08:00
renovate[bot]
cd58bc2228 Update plugin com.gradle.enterprise to v3.16.2 (#4018)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-27 04:54:52 +08:00
renovate[bot]
ec466b0bb0 Update dependency io.nlopez.compose.rules:ktlint to v0.3.11 (#4017)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-27 04:54:36 +08:00
renovate[bot]
19256d020d Update gradle/gradle-build-action action to v3 (#4019)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-27 04:54:13 +08:00
Zongle Wang
a62f5067cd Keep all classes under android.window
Closes #4016.
2024-01-26 17:53:49 +08:00
nift4
3a8b541580 Launcher3: Disable live tile
Method as per Google commit 25399db1e7
("[DO NOT MERGE] Disable live tile in split mode for S").

Live tile has a LOT of bugs even in AOSP and Pixel stock ROMs:
* Alpha animation randomly not applying causing app to get stuck
* X/Y translation not applying causing app to get stuck
* Causes extreme jank (enable HWUI bars and swipe in recents...)
* Sidescroll tile minimization cuts off content instead of shrinking it.
* Screenshotting a sidescolled live tile causes it to become invisible.

Combined with our blur/transparency changes:
* The tile doesn't actually shrink because Google just draws background
  over the tile instead of shrinking it...
* The tile gets blurred which has to be fixed in very hacky ways,
  because it is on a very low layer, which is below the blur
...the end result is a total mess.
Kill this feature, and revisit fixing our issues once Google gets their
own shit together.

Change-Id: I33e6dab845b2147fd72fe0fb4c151e78035560ec
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-01-26 12:00:31 +08:00
nift4
9c3b7fe743 Launcher3: Ensure to update cached thumbnail if we take new one
This fixes a bug, which became obvious thanks to disabled live tile, but
has already existed before, where recents jumps to using last snapshot
instead of the correct/current one once you fling, because thumbnails
were cached but the cache had not been updated in this codepath.

Change-Id: Ie7afe56b6e0aecaae2510248c5887873800a0b51
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-01-26 12:00:14 +08:00
Pranav Vashi
30f77e5f43 Reland 'Launcher3: Fix blurry recents issue with live tile'
* Issue description: https://github.com/LawnchairLauncher/lawnchair/issues/2762

mnri: this reduces the occurences of the taskview getting stucked after swipe up gesture

Change-Id: I363f4ace8b2bde2bc4ed6e6f7f608b850e0359f8
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
2024-01-26 11:58:16 +08:00
nift4
0312589cf5 Launcher3: Fix overview scrolling scale animation
Adapt it for Live Tile support + fix landscape handling

Change-Id: I1cf5d79aa6373e836d33bc7ddb15c0c5258a63d7
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-01-26 06:26:47 +08:00
LibXZR
6fc64ce9b7 Launcher3: Introduce overview scrolling scale animation
This vivid animation enables users to perceive more clearly
about the switching of the task cards.

Note that live tile feature is disabled because it is not
compatible with this animation. Also live tile is causing
notable performance regression, which is not worth relative
to its function.

Change-Id: Ie1350d6bda2d311f70f9be7cff47b0abe7e00cad
Signed-off-by: LibXZR <i@xzr.moe>

Fix discontinuous animation when dismissing taskcards on
 the right side

Cards should never be scale down in this animation.

Change-Id: I759492390eb8f1a2b9023c2d264f0e7191b17108
Signed-off-by: LibXZR <i@xzr.moe>

Recalculate scroll scale on layout

Edge case exist that when there's only one task,
onScrollChanged() won't be called so the last scale
from the recycled view is showed, leading to wrong
display size.

Change-Id: If8a189ba6b854ed486283d43b8a0ac3e4bb4e9f2
Signed-off-by: LibXZR <i@xzr.moe>

Change-Id: I5056c51f823788a45683c23fa710975d9ae7fe7e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2024-01-26 06:25:56 +08:00
John Andrew Camu
c31b41ae73 QuickSwitch Compat Q to U (#3948)
Initial support quickstep, Android versions from Q to U, ensuring a smooth and efficient user experience. Enjoy effortless navigation and swift app switching on your Android device with QuickSwitch's compatibility across the Q, R, S, T, and U.


Co-authored-by: Goooler <wangzongler@gmail.com>
Co-authored-by: 无言 <57122860+liu-wanshun@users.noreply.github.com>
2024-01-26 05:59:47 +08:00
MrSluffy
f63aa1e315 Add Edit mode option 2024-01-25 13:44:53 +08:00
renovate[bot]
29bd6317f8 Compose runtime 1.6.0 (#4007)
* Update dependency androidx.compose:compose-bom to v2024

* material-motion-compose-core 1.1.1

* Update accompanistVersion to v0.34.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2024-01-25 02:10:33 +00:00
renovate[bot]
f59aa7defc Update plugin androidx.baselineprofile to v1.2.3 (#4006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 09:25:19 +08:00
renovate[bot]
04530670a7 Update dependency androidx.benchmark:benchmark-macro-junit4 to v1.2.3 (#4008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 09:25:08 +08:00
Goooler
59ab3624ff Tweak immutable list usages 2024-01-24 22:15:57 +08:00
Goooler
8ed4cf2442 Remove systemuicontroller
https://google.github.io/accompanist/systemuicontroller
2024-01-24 21:59:25 +08:00
Zongle Wang
4e79381005 Enable the edge-to-edge display (#4003)
https://developer.android.com/develop/ui/views/layout/edge-to-edge#enable-edge-to-edge-display
2024-01-24 13:31:09 +08:00
renovate[bot]
3669ff6fe2 Update AGP to v8.2.2 (#4001)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 09:31:12 +08:00
renovate[bot]
a493f932cb Update plugin com.diffplug.spotless to v6.25.0 (#3998)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 10:02:58 +00:00
Zongle Wang
4da0d74bfe Bump toolchain to using Java 21 2024-01-21 15:35:12 +08:00
Lawnchair Bot
973c2af450 New Crowdin translations by GitHub Action (#3990)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-21 03:48:58 +03:30
renovate[bot]
4f4ef348cf Update dependency io.nlopez.compose.rules:ktlint to v0.3.10 (#3985)
* Update dependency io.nlopez.compose.rules:ktlint to v0.3.10

* Fix `compose:lambda-param-in-effect`

https://mrmans0n.github.io/compose-rules/rules/#be-mindful-of-the-arguments-you-use-inside-of-a-restarting-effect

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2024-01-20 20:46:11 +08:00
Pun Butrach
248d8d54f1 Secure Gradle wrapper (#3988) 2024-01-20 13:32:42 +08:00
renovate[bot]
9af7ff2a9b Update plugin com.google.devtools.ksp to v1.9.22-1.0.17 (#3980)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-19 20:36:17 +08:00
Zongle Wang
d28f1811fc Use Java 21 on CI (#3979) 2024-01-18 11:43:18 +00:00
Pun Butrach
cb5d79fc1d Surround commits under try-except block (#3974)
* Surround `commits` under try-except block

* Directly return instead of setting variable to 0

* Update ci.py
2024-01-15 21:07:24 +08:00
renovate[bot]
512606ee09 Spotless 6.24.0 + Ktlint 1.1.1 (#3972)
* Update plugin com.diffplug.spotless to v6.24.0

* Fix styles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2024-01-15 03:37:51 +00:00
Lawnchair Bot
214b431b55 New Crowdin translations by GitHub Action (#3969)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-14 03:49:45 +03:30
SuperDragonXD
28412aa2ec Update QSB dark mode color
Fixes #3966 and #2791
2024-01-13 17:25:10 +08:00
Yasan Ghaffarian
cb3b3364c0 Add monochrome (themed) icon support 2024-01-10 22:19:11 +01:00
renovate[bot]
fefb243061 Update Kotlin, KSP and Compose Compiler (#3903)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 20:11:56 +00:00
renovate[bot]
5d3fe10ff4 Update androidx.lifecycle to v2.7.0 (#3955)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 20:10:07 +00:00
renovate[bot]
ee8a3d3dc9 Update protocVersion to v3.25.2 (#3954)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-11 04:03:55 +08:00
John Andrew Camu
57f25964d1 Re-Implement Top Shadow (#3952)
- Faulty merge A14
2024-01-10 09:42:43 +08:00
renovate[bot]
d376dc1f66 Update dependency io.nlopez.compose.rules:ktlint to v0.3.9 (#3950)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 08:33:32 +08:00
MrSluffy
32922a2e02 Fix conflicts 2024-01-08 16:03:01 +08:00
Anushree Ganjam
3269857e66 [DO NOT MERGE] Change the LPNH flag to read from server flag "ENABLE_LONG_PRESS_NAV_HANDLE_MPR".
Flag: ENABLE_LONG_PRESS_NAV_HANDLE_MPR
Test: Manual
Bug: 309689303
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:75183ceed565aca0174e4e9707d6cb59dea2fce5)
Merged-In: Ib695b3d6ac3f40ee53b6b64bb6b121e7b34d4b07
Change-Id: Ib695b3d6ac3f40ee53b6b64bb6b121e7b34d4b07

This cherry-picks e4de57a662.
2024-01-08 14:50:06 +08:00
Tony Wickham
0c4e271bd8 Fix 3 button mode issues in AllSetActivity
- Set system bars appearance to light/dark depending on device
  theme to ensure visibility
- Also fix issue where taskbar icons would appear partially
  offscreen and prevent pressing nav buttons if you rotated

Fixes: 293438087
Test: adb shell am start -a android.intent.action.MAIN -n com.google.android.setupwizard/.SetupWizardTestActivity
  - Skip to the end (AllSetActivity), and ensure 3 buttons are visible
  - Rotate device and ensure 3 buttons are still visible and functional
  - Will also flash / wipe to the build once it's created
Flag: None
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:286fc215e632280fe0b401bfd713621104861288)
Merged-In: Ie2d9bf1e1d95a6ccbd1f9c592adb51390b21ad85
Change-Id: Ie2d9bf1e1d95a6ccbd1f9c592adb51390b21ad85

This cherry-picks from fa65485109.
2024-01-08 14:50:06 +08:00
Goooler
20c884d972 Merge tag 'android-14.0.0_r21' into 14-dev-merge-launcher3
https://android.googlesource.com/platform/packages/apps/Launcher3/+/refs/tags/android-14.0.0_r21

Android 14.0.0 release 21
2024-01-08 14:45:36 +08:00
Lawnchair Bot
0b329c7660 New Crowdin translations by GitHub Action (#3941)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-07 03:48:51 +03:30
MrSluffy
a545223d31 Set the clip path before drawing anything
fixed err : Canvas: trying to draw too large(201326592bytes) bitmap.
	at android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:266)
	at android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:94)
	at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:549)
	at android.widget.ImageView.onDraw(ImageView.java:1446)
	at app.lawnchair.util.ImageViewWrapper.onDraw(ImageViewWrapper.kt:41)
2024-01-05 07:29:57 +08:00
renovate[bot]
9cb27087d4 Update AGP to v8.2.1 (#3937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 14:41:46 +08:00
renovate[bot]
7e8907f393 Update dependency com.google.errorprone:error_prone_annotations to v2.24.1 (#3938)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 14:41:39 +08:00
John Andrew Camu
59ecfea78d Fixed weird NPE in some oem adding widget (#3931) 2024-01-02 10:29:05 +08:00
John Andrew Camu
abfc4e18b1 Allow placing widget in hotseat (#3930) 2024-01-02 09:23:33 +08:00
Lawnchair Bot
8576859705 New Crowdin translations by GitHub Action (#3926)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-12-31 03:49:33 +03:30