Commit Graph

15696 Commits

Author SHA1 Message Date
MrSluffy
90ecc23782 Initial implementation wallpaper blur 2024-07-28 18:46:37 +08:00
Alvin Francis
60e6d50505 Launcher3: quickstep: TouchInteractionService: Do not crash on boot (#4589)
When using a 3rd party launcher most likely

Log:
E AndroidRuntime: Process: com.android.launcher3, PID: 2783
E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.USER_UNLOCKED flg=0x50000010 (has extras) } in com.android.launcher3.util.SimpleBroadcastReceiver@89bb61a
E AndroidRuntime:        at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1818)
E AndroidRuntime:        at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$mcNAAl1SQ4MyJPyDg8TJ2x2h0Rk(Unknown Source:0)
E AndroidRuntime:        at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:959)
E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:100)
E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:232)
E AndroidRuntime:        at android.os.Looper.loop(Looper.java:317)
E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8502)
E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:554)
E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
E AndroidRuntime: Caused by: java.lang.IllegalStateException: Existing input consumer found with name: recents_animation_input_consumer, display: 0, user: UserHandle{0}
E AndroidRuntime:        at android.os.Parcel.createExceptionOrNull(Parcel.java:3190)
E AndroidRuntime:        at android.os.Parcel.createException(Parcel.java:3166)
E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:3149)
E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:3091)
E AndroidRuntime:        at android.view.IWindowManager$Stub$Proxy.createInputConsumer(IWindowManager.java:4872)
E AndroidRuntime:        at com.android.systemui.shared.system.InputConsumerController.registerInputConsumer(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:24)
E AndroidRuntime:        at com.android.quickstep.TouchInteractionService.onUserUnlocked(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:51)
E AndroidRuntime:        at com.android.quickstep.TouchInteractionService$$ExternalSyntheticLambda0.run(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:12)
E AndroidRuntime:        at com.android.launcher3.util.RunnableList.executeAllAndClear(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:21)
E AndroidRuntime:        at com.android.launcher3.util.RunnableList.executeAllAndDestroy(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:4)
E AndroidRuntime:        at com.android.launcher3.util.LockedUserState.access$notifyUserUnlocked(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:3)
E AndroidRuntime:        at com.android.launcher3.util.LockedUserState$mUserUnlockedReceiver$1.accept(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:22)
E AndroidRuntime:        at com.android.launcher3.util.SimpleBroadcastReceiver.onReceive(go/retraceme 015d387a8a548af421dcff814eada6998d8d1f185998fc40f30bbeef937dbdc3:3)
E AndroidRuntime:        at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1810)
E AndroidRuntime:        ... 10 more
E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
E AndroidRuntime:        at com.android.server.wm.InputMonitor.createInputConsumer(InputMonitor.java:226)
E AndroidRuntime:        at com.android.server.wm.WindowManagerService.createInputConsumer(WindowManagerService.java:6543)
E AndroidRuntime:        at android.view.IWindowManager$Stub.onTransact(IWindowManager.java:2612)
E AndroidRuntime:        at com.android.server.wm.WindowManagerService.onTransact(WindowManagerService.java:1406)
E AndroidRuntime:        at android.os.Binder.execTransactInternal(Binder.java:1496)

Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com>
2024-07-25 09:44:08 +08:00
SuperDragonXD
6147f2b5f3 Revert tertiary color change 2024-06-28 21:03:58 +08:00
SuperDragonXD
5400863d16 Theme additional Launcher3 components 2024-06-26 20:42:59 +08:00
SuperDragonXD
8b5a81c5e7 Reorganize colorscheme files 2024-06-26 19:10:38 +08:00
John Andrew Camu
930d0e6cd7 Add Support for big screen (#4461)
* Initial Support for big screen

* Fixed regressions

* Don't recalculate when device isTablet
2024-06-22 12:58:43 +08:00
renovate[bot]
aaa00c19f4 Update dependency com.github.topjohnwu.libsu:core to v5.3.0 (#4489)
* Update dependency com.github.topjohnwu.libsu:core to v5.3.0

* Update dependency com.github.topjohnwu.libsu:service to v5.3.0

* Migrate

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2024-06-20 02:09:13 +00:00
MrSluffy
dfa7645f2c Add throwable error
- Closes : #4416
2024-06-08 09:02:13 +08:00
MrSluffy
a4a55a9537 Fixe crashes below Q
- Closes : #4448
2024-06-08 08:52:09 +08:00
John Andrew Camu
e30660b155 Fixed crashes with gesture (#4417)
* Add support A14 QPR2
2024-06-02 16:26:42 +08:00
Berke Emin Kabagöz
84ff0e6abc Fix isVisible NoSuchField issue (#4402) 2024-05-19 08:35:25 +08:00
Pun Butrach
1294e9ca90 Recents screen improvements (#4338)
* Allow changing Recents translucency
* Fix wrong Android version (from Q to P) in overlay priority
* Fix QuickSwitch warning not being shown

Signed-off-by: validcube <pun.butrach@gmail.com>
Co-authored-by: Zongle Wang <wangzongler@gmail.com>
Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
2024-05-04 12:00:24 +08:00
Pun Butrach
752c3757b1 Don't elevate priority for devices below Q (#4331)
* Don't elevate priority for devices below Q

EGL_CONTEXT_PRIORITY_HIGH_IMG doesn't exist for Android below Q and
Lawnchair Launcher don't support QuickSwitch for Android Q anyway,
the effect should have no effect on daily usage.

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>

* Update quickstep/src/com/android/quickstep/QuickstepProcessInitializer.java

* Use AtLeast check from Launcher3's Utilities

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>

* Update quickstep/src/com/android/quickstep/QuickstepProcessInitializer.java

Co-authored-by: Zongle Wang <wangzongler@gmail.com>

---------

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
Co-authored-by: Zongle Wang <wangzongler@gmail.com>
2024-04-27 13:14:34 +00:00
MrSluffy
b1ad3b1979 Revert "Fixed - going to home when tapping nav pill multiple times"
This reverts commit 6146a4a6f8.
2024-04-06 08:21:50 +08:00
MrSluffy
09620278f6 Fixed crash on A9
- Closes : #4151
2024-04-03 18:39:45 +08:00
Zongle Wang
bfb4ddfa48 Reimplement QuickSwitch compat libs (#4084)
* Reimplement makeDefaultActivityOptions

* No need to post again

* Cleanups

* Tweak LawnchairQuickstepCompat

* Let compatLibVR depend on compatLibVQ

* Let compatLibVS depend on compatLibVR

* Cleanup compatLibVT

* Let compatLibVU depend on compatLibVT

* Add ActivityManagerCompatVS.getRunningTasks back

* Fix ActivityManagerCompatVS

* Don't return null running tasks

* Annotate getTaskSnapshot

* Fix style

* Retrun list from getRunningTasks

* Tweaks

* Cleanups

* null check

* Add ActivityManagerCompatVS.invalidateHomeTaskSnapshot back

* Move ThumbnailData

* Fixed err

* Cleanup

* Add RequiresApi

* Make RemoteTransitionCompat as an interface

* Annotate ActivityOptionsCompat

* More interfaces

* Replace aidl files with generated sources

* Reformat

* Revert "Replace aidl files with generated sources"

This reverts commit ee450e696d.

Revert "Reformat"

This reverts commit 38c8f21ed3.

* Use launcherNullable

* Fixes more crashes

---------

Co-authored-by: MrSluffy <werdna.jac@gmail.com>
2024-03-10 11:24:14 +08:00
MrSluffy
6146a4a6f8 Fixed - going to home when tapping nav pill multiple times
Error Reproduce : Make sure lawnchair set as Recent Provider
1. Open app
2. Tap multiple nav pill
3. issue occur
2024-02-17 15:40:49 +08:00
John Andrew Camu
f20cc146cf Add support PIP for One UI 5.1 core (#4028) 2024-02-11 20:02:49 +08:00
MrSluffy
82825434a9 Task Menu : Add Force Stop 2024-02-10 18:48:24 +08:00
John Andrew Camu
594dc1c3d2 Introducing Task Lock in Overview (#4061)
In situations where users frequently run the app in the background, and open multiple apps, there may be instances where a specific app should not be cleared when performing a 'Clear All' or 'Dismiss' action. This new feature ensures that a selected running task or app remains in the Recent View and will not be removed.
2024-02-10 17:32:43 +08:00
Goooler
e20638aa2c Revert format changes 2024-02-09 09:08:40 +08:00
MrSluffy
c0a7860045 Fix conflicts 2024-02-09 07:45:04 +08:00
Goooler
aa2f7086ea Merge tag 'android-14.0.0_r28' into android-14.0.0_r28
Android 14.0.0 Release 28 (UP1A.231105.001.B2)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZcKIlAAKCRDorT+BmrEO
# eBpvAJ4nxs3kcAIk4V/imBoX2pQFBOJYCACfUgnHI+9dgPBM5yKFzN/Hm/DhrDs=
# =avdO
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Feb  7 03:29:24 2024 CST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Can't check signature: No public key

# Conflicts:
#	lawnchair/res/color/widgets_picker_scrim.xml
#	quickstep/src/com/android/launcher3/QuickstepTransitionManager.java
#	quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java
#	quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java
#	quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java
#	quickstep/src/com/android/quickstep/TaskAnimationManager.java
#	quickstep/src/com/android/quickstep/TaskViewUtils.java
#	quickstep/src/com/android/quickstep/interaction/AllSetActivity.java
#	src/com/android/launcher3/config/FeatureFlags.java
#	src/com/android/launcher3/folder/LauncherDelegate.java
2024-02-08 22:44:10 +08:00
Pun Butrach
6e8cad97bb Add toggleable material u popup (#4034)
* Toggleable new bouncy consolidated popup (MATERIAL_U_POPUP)
* Fix typo in calling PreferenceManager2
* Import FeatureFlags
* Get ctx in SDL
* Get ctx instead of this
* Correct type for context
* Import Context
* insert commit message here!
* I forgot I can just apply this neatly trick after looking at the code for 5 secounds
* Move to appropriate category

Co-authored-by: MrSluffy <werdna.jac@gmail.com>
2024-01-31 08:51:54 +08:00
MrSluffy
efdebfc6b4 Fixed broken WallpaperDepth option
- Closes : #3932
2024-01-29 11:54:48 +08:00
MrSluffy
05832f1323 Clean up 2024-01-28 15:38:35 +08:00
Anle Pan
97c45a0a26 Launcher3: Fix monkey crash in RecentsLaunchAnimator
It will appear a null object crash in quickstep launch
when monkey test. Althoough the 'View v' is declared as NonNull,
but there is a probability that it will return a null object
after the 'isTaskViewVisible' judgement in 'findTaskViewToLaunch',
Make a judgement before use to avoid crash.

Change-Id: I4606853325641feaf26a79791cce2514cee80d4c
Signed-off-by: Anle Pan <anle.pan@nxp.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-01-28 09:47:45 +08:00
ot_vishavjot.kaur
0681d1149d Launcher3: Fix launcher ui interface overlap and frozen problem
Press recent key and quickly click recent screen background, then
Recent List task doesn't disappear and overlaps on Homescreen.

When there is no time for Background State to change to Overview State, and gotoState(Normal) API is called, then let Background State transition to Normal state, and force Normal state to not transition to Overview state.

Bug: 287897684
Test: manually
1. Launch any app
2. Press Recent key
3. Click on same app task on recent list
4. Press Recent key
5. As soon as recent list appears, quickly click on background of Recent screen

Change-Id: I21f71a49cafe83bb8c916eb240d8db9246a13487
Signed-off-by: Dmitrii <bankersenator@gmail.com>
2024-01-28 09:47:45 +08:00
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
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
32922a2e02 Fix conflicts 2024-01-08 16:03:01 +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
MrSluffy
5297d83ce4 Fixed No virtual method setRemoteTransition
Lawnchair (Debug) bug report Dec 19, 2023 23:11:30
version: 14 Dev (#199) (14)
commit: 53a1dd0
build.brand: OnePlus
build.device: OnePlus7
build.display: UQ1A.231205.014 release-keys
build.fingerprint: OnePlus/yaap_guacamoleb/OnePlus7:14/UQ1A.231205.014/eng.ido.20231218.155325:user/release-keys
build.hardware: qcom
build.id: UQ1A.231205.014
build.manufacturer: OnePlus
build.model: GM1903
build.security.level: 2023-12-05
build.product: yaap_guacamoleb
build.type: user
version.codename: REL
version.incremental: eng.ido.20231218.155325
version.release: 14
version.sdk_int: 34
display.density_dpi: 403
isRecentsEnabled: true

error: Uncaught exception

java.lang.NoSuchMethodError: No virtual method setRemoteTransition(Landroid/window/RemoteTransition;)V in class Landroid/app/ActivityOptions; or its super classes (declaration of 'android.app.ActivityOptions' appears in /system/framework/framework.jar)
	at com.android.launcher3.uioverrides.ApiWrapper.createFadeOutAnimOptions(ApiWrapper.java:70)
	at com.android.launcher3.dragndrop.AddItemActivity.onLongClick(AddItemActivity.java:262)
	at android.view.View.performLongClickInternal(View.java:7740)
	at android.view.View.performLongClick(View.java:7696)
	at android.view.View.performLongClick(View.java:7714)
	at android.view.View$CheckForLongPress.run(View.java:30126)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8195)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:554)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
2023-12-20 12:29:29 +08:00
Suphon T
577084d62b Fix work mode switch inflation (#3878)
* Revert "Fixed App crashes when leaving search in A9 (#3876) (#3877)"

This reverts commit 54ee1a0e92.

* Fix work mode switch inflation on Pie

* Also change the color in dark mode
2023-12-19 07:16:53 +08:00
Suphon Thanakornpakapong
e50e2e8231 Bring back status bar expansion for non-quickstep 2023-12-18 10:42:04 +07:00
MrSluffy
be01a70323 Fixed No method for some stock oem
Lawnchair (Debug) bug report 17-Dec-2023 1:28:22 pm
version: 14 Dev (#97) (13)
commit: c5fd2ac
build.brand: motorola
build.device: dubai
build.display: T1RD33.116-33-13
build.fingerprint: motorola/dubai_g/dubai:13/T1RD33.116-33-13/441420-2d5de8:user/release-keys
build.hardware: qcom
build.id: T1RD33.116-33-13
build.manufacturer: motorola
build.model: motorola edge 30
build.security.level: 2023-10-01
build.product: dubai_g
build.type: user
version.codename: REL
version.incremental: 441420-2d5de8
version.release: 13
version.sdk_int: 33
display.density_dpi: 400
isRecentsEnabled: false

error: Uncaught exception

java.lang.NoSuchMethodError: No virtual method getActivityOverrides()Ljava/util/Map; in class Landroid/content/pm/LauncherApps; or its super classes (declaration of 'android.content.pm.LauncherApps' appears in /system/framework/framework.jar)
	at com.android.launcher3.uioverrides.ApiWrapper.getActivityOverrides(ApiWrapper.java:55)
	at com.android.launcher3.AutoInstallsLayout.<init>(AutoInstallsLayout.java:208)
	at com.android.launcher3.AutoInstallsLayout.<init>(AutoInstallsLayout.java:187)
	at com.android.launcher3.AutoInstallsLayout.get(AutoInstallsLayout.java:122)
	at com.android.launcher3.model.ModelDbController.loadDefaultFavoritesIfNecessary(ModelDbController.java:381)
	at com.android.launcher3.model.LoaderTask.loadWorkspaceImpl(LoaderTask.java:376)
	at com.android.launcher3.model.LoaderTask.loadWorkspace(LoaderTask.java:348)
	at com.android.launcher3.model.LoaderTask.run(LoaderTask.java:211)
	at android.os.Handler.handleCallback(Handler.java:984)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loopOnce(Looper.java:238)
	at android.os.Looper.loop(Looper.java:357)
	at android.os.HandlerThread.run(HandlerThread.java:85)
2023-12-18 07:17:34 +08:00
Rafael de Moura Dev
c6f9bc7be0 Fix Crash on A9 - LC14 (#3871)
* Fix Crash on A9 - LC14 (#1)

* Update VibratorWrapper.java

* Update VibratorWrapper.java

* Update RecentsAnimationDeviceState.java

* Update MotionEventsUtils.java

* Update NoButtonQuickSwitchTouchController.java

* Update MotionEventsUtils.java

* Update Workspace.java

* Update NoButtonQuickSwitchTouchController.java

Remove added check no longer needed

* Update MotionEventsUtils.java

* Update Workspace.java

remove extra check added just now

* Update ApiWrapper.java

fix this issue when when changing the number of lines and columns of home screen grid

```
error: Uncaught exception

java.lang.NoSuchMethodError: No virtual method getActivityOverrides()Ljava/util/Map; in class Landroid/content/pm/LauncherApps; or its super classes (declaration of 'android.content.pm.LauncherApps' appears in /system/framework/framework.jar)
	at com.android.launcher3.uioverrides.ApiWrapper.getActivityOverrides(ApiWrapper.java:55)
	at com.android.launcher3.AutoInstallsLayout.<init>(AutoInstallsLayout.java:208)
	at com.android.launcher3.AutoInstallsLayout.<init>(AutoInstallsLayout.java:187)
	at com.android.launcher3.DefaultLayoutParser.<init>(DefaultLayoutParser.java:57)
	at com.android.launcher3.model.ModelDbController.getDefaultLayoutParser(ModelDbController.java:494)
	at com.android.launcher3.model.ModelDbController.loadDefaultFavoritesIfNecessary(ModelDbController.java:396)
	at com.android.launcher3.model.LoaderTask.loadWorkspaceImpl(LoaderTask.java:376)
	at com.android.launcher3.model.LoaderTask.loadWorkspace(LoaderTask.java:348)
	at app.lawnchair.views.LauncherPreviewView$loadModelData$1.run(LauncherPreviewView.kt:101)
	at app.lawnchair.views.LauncherPreviewView.loadModelData(LauncherPreviewView.kt:111)
	at app.lawnchair.views.LauncherPreviewView.$r8$lambda$9n1GudRhfMpYAkR1-vecefjJG-A(Unknown Source:0)
	at app.lawnchair.views.LauncherPreviewView$$ExternalSyntheticLambda2.run(Unknown Source:2)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:205)
	at android.os.HandlerThread.run(HandlerThread.java:65)

```
2023-12-18 05:17:35 +08:00
MrSluffy
4276067c6c Bring back OnBackPressedHandler
- Bring back OnBackPressedHandler so we can support lower version

TODO : Recreate OnBackAnimationCallback
2023-12-16 18:59:08 +08:00
MrSluffy
cc8f9828ab Merge branch 'heads/android-14.0.0_r18' into 14-dev 2023-12-16 17:18:13 +08:00
MrSluffy
32700b0100 Merge branch 'android14-release' into 14-dev 2023-12-13 18:47:55 +08:00
John Andrew Camu
5931c9afec Fix crash a9 (#3836)
* Fix crash on Android 9 (#3808)

- Initial support for A9


Co-authored-by: John Andrew Camu <werdna.jac@gmail.com>
Co-authored-by: Rafael de Moura Dev <93414086+Rafael2616@users.noreply.github.com>
2023-12-09 14:13:47 +08:00
John Andrew Camu
4402ef1bf3 another fixed oneui 11 (#3810)
android.view.InflateException: Binary XML file line #25 in app.lawnchair.debug:layout/task_desktop: Resource ID #0x106002f
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x106002f
	at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:255)
	at android.content.res.Resources.getColor(Resources.java:1169)
	at com.android.quickstep.views.DesktopTaskView.onFinishInflate(DesktopTaskView.java:124)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1134)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
	at com.android.launcher3.util.ViewPool.inflateNewView(ViewPool.java:106)
	at com.android.launcher3.util.ViewPool.lambda$initPool$1(ViewPool.java:69)
	at com.android.launcher3.util.ViewPool.$r8$lambda$wSRnQcMZiOmM7xwf4gm88rNehhg(Unknown Source:0)
	at com.android.launcher3.util.ViewPool$$ExternalSyntheticLambda1.run(Unknown Source:8)
	at java.lang.Thread.run(Thread.java:923)
2023-12-01 18:09:30 +08:00
Goooler
b7a32a0711 Add a switch to control suggested apps showing (#3803) 2023-12-01 14:49:17 +08:00
John Andrew Camu
ffacafc22c Revert back configs (#3802) 2023-12-01 06:33:12 +08:00