Commit Graph

7642 Commits

Author SHA1 Message Date
Goooler
c8d2d96229 Cleanup LawnchairApp 2022-12-07 11:56:35 +03:30
Yasan Ghaffarian
13a696ae0f Revert "Automatic icon reload on night mode change (#2930)"
This reverts commit 97d6c852c8.
2022-09-14 12:10:54 +04:30
Yasan Ghaffarian
97d6c852c8 Automatic icon reload on night mode change (#2930)
Co-authored-by: Daria Hamrah Paytakht <info@dariarnd.ir>
Co-authored-by: Goooler <wangzongler@gmail.com>
2022-09-12 11:43:52 +04:30
Mayur Varde
bf7e4d562c Add uninstall button and it's fixes (#2840)
* Lawnchair: Add uninstall button to system shortcuts

[ghostrider-reborn] updated for android 12
[marshmello61] adapt for Lawnchair
Change-Id: I005d676d9a98f65296c330e5e13fd0d849df6fe5
Signed-off-by: Adithya <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Mayur <ultramayur123@gmail.com>

* Lawnchair: Fix NPE in SystemShortcut

[marshmello61] adapt for Lawnchair
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Mayur <ultramayur123@gmail.com>

* Lawnchair: Use standard launcher method for uninstalling

[marshmello61] adapt for Lawnchair
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Mayur <ultramayur123@gmail.com>

* Fix PR issues

Co-authored-by: Ali B <abittin@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Co-authored-by: Yasan Ghaffarian <y.ghafarian@dariahamrah.ir>
2022-09-05 13:14:22 +04:30
Sipun Ku Mahanta
986264f049 Optimize drawables
Before - 627.73kb
After - 546.84kb

Signed-off-by: Sipun Ku Mahanta <sipunkumar85@gmail.com>
Change-Id: I982b546a141b3ec1ddc58758957607f6242f82fb
2022-08-10 14:29:05 +04:30
Goooler
e3f9d84061 Modernize a bit (#2806) 2022-08-10 15:07:14 +05:30
Patryk Michalik
7767d76320 Revert commits d2f4294a & 7c618e01 2022-07-17 19:15:22 +02:00
Suphon Thanakornpakapong
7c618e0146 Move drawable tokens assignment to layout inflater 2022-06-22 21:40:58 +07:00
Suphon Thanakornpakapong
c471e08b94 Fix widgets interaction before June patch 2022-06-22 17:49:14 +07:00
Suphon Thanakornpakapong
4a3ce2b120 Merge tag 'android-12.1.0_r8' into 12.1-dev 2022-06-22 16:31:57 +07:00
Patryk Michalik
1f5597a908 Update dependencies 2022-06-17 18:39:24 +02:00
Suphon Thanakornpakapong
787abb92a2 Vibrate when pulling down status bar 2022-05-26 23:16:47 +07:00
Suphon Thanakornpakapong
2e465de10b Add wallpaper depth effect toggle 2022-05-26 20:46:00 +07:00
Suphon Thanakornpakapong
1ee4825c6c Implement home tap gesture 2022-05-26 20:16:24 +07:00
Suphon T
399460bd05 Fix clear all button inflation 2022-05-25 23:30:47 +07:00
Suphon Thanakornpakapong
8dc2da4249 Inherit Launcher3 clear all button style 2022-05-25 13:29:46 +07:00
Suphon Thanakornpakapong
53bf8f43f0 Ignore errors from setContextPriority 2022-05-19 01:56:01 +07:00
LibXZR
67606ddd4f Do not attach cleanupScreenshot() to frame update event
When the animation get canceled, cleanupScreenshot() should
be run instantly because it does something like removing
pending animations. The switchToScreenshot() attaches it to
RtFrameCallback which only be called on frame update. This
is leading to problems as the next frame update may only
happened when the next gesture starts, which means all the
pending animations will be removed on next gesture. And then
the next gesture freezed.

Fixes randomly gesture freeze since 12L.

Change-Id: I10247294a2dcae467706c434685b299f8b525888
Signed-off-by: LibXZR <i@xzr.moe>
Signed-off-by: Pranav <npv12@iitbbs.ac.in>
2022-05-16 08:20:45 +05:30
Suphon Thanakornpakapong
10a501f898 Disable overlay depth below R 2022-05-14 18:49:53 +07:00
Suphon Thanakornpakapong
78947405db Fix splitscreen crash below R 2022-05-14 17:54:36 +07:00
Suphon Thanakornpakapong
6b2c5ea472 Fix release build 2022-05-14 16:53:17 +07:00
Suphon Thanakornpakapong
cef65bba26 Disable TIS when quickstep is not compatible 2022-05-13 23:41:58 +07:00
Suphon Thanakornpakapong
1e9bb4a694 Prevent crash when launching apps on Android 13 2022-05-11 15:54:15 +07:00
Suphon Thanakornpakapong
6e23f1dfc1 Fix crashes below R 2022-05-11 10:16:15 +07:00
Suphon Thanakornpakapong
d7a6e6f3b6 Recreate taskbar on pref change 2022-05-11 09:04:51 +07:00
Suphon Thanakornpakapong
b41bc60300 Add option to enable taskbar on phones
Co-authored-by: Danny Lin <danny@kdrag0n.dev>
2022-05-11 09:04:51 +07:00
Suphon Thanakornpakapong
b8b3483935 Fix custom drawer opacity 2022-05-09 19:56:24 +07:00
Suphon Thanakornpakapong
2961a72067 Fix crash when resuming 2022-05-09 15:43:38 +07:00
Suphon Thanakornpakapong
952551cb4c Fix more build errors 2022-05-08 22:53:06 +07:00
Suphon Thanakornpakapong
28df5361d4 Fix build 2022-05-08 21:31:31 +07:00
Suphon Thanakornpakapong
11e1a2fdc8 Merge remote-tracking branch 'aosp/android12L-release' into 12.1-dev 2022-05-08 20:29:17 +07:00
Bill Yi
e9903f38db Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I079f72f6b183f11535e77f03ab6a3f9c0bf1da93
2022-04-05 21:23:51 +00:00
Tony Wickham
864f8d45b8 [RESTRICT AUTOMERGE] Ignore taskbar system gesture inset on Launcher
- Also have Taskbar report itself as MANDATORY_GESTURE_INSETS

Test: Able to drag bottom workspace items
Bug: 205493938
Change-Id: I014991b1cc6dbd66fa275a7766304ebd92171328
2022-03-30 23:57:16 +00:00
Jon Miranda
8f82208a5e Merge "Never look for matching view in All Apps when swiping up to go home." into sc-v2-dev 2022-03-15 18:13:29 +00:00
Jon Miranda
f6365d5b85 Add debug logs for bad launcher state.
Bug: 223498680
Bug: 221658803
Bug: 223499269

Test: manual
Change-Id: I138a7ab031269009fa8ca492cd0bd48085aa4e68
(cherry picked from commit 7ebe209c21)
Merged-In: I138a7ab031269009fa8ca492cd0bd48085aa4e68
2022-03-11 03:35:17 +00:00
Jon Miranda
b2068f2eda Never look for matching view in All Apps when swiping up to go home.
The swiping up gesture will never return an app in All Apps,
so we can ignore All Apps state in those cases.

This fixes an edge case where user swipes up and launcher state
is still in All Apps. This causes us to animate the icon to
where it would be in All Apps, even though by the time the
animation starts we are actually in Normal state.

Bug: 222124240
Test: open app from  all apps then quickly swipe up to go home
Change-Id: I756a870660a397d6629aec82e4f5ec4914ed0669
(cherry picked from commit b42e124f5b)
2022-03-10 20:31:11 +00:00
Bill Yi
bf37866067 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie305e6a08bf74c0302f843d72786222a519bdf7b
2022-03-02 19:21:36 +00:00
TreeHugger Robot
ba297c19c2 Merge "Passing in the launch cookie for widget broadcast trampolines" into sc-v2-dev 2022-02-28 19:11:10 +00:00
Sunny Goyal
8e5a164e05 Removing unnecessary AM.getTasks() call on every touch
Bug: 220906427
Test: Verified on device
Change-Id: I58ed22c4d6069f10198ec30ec02fa8c2f7c55cbe
(cherry picked from commit d2ec834fac)
2022-02-24 17:40:54 +00:00
Selim Cinek
c519538bca Passing in the launch cookie for widget broadcast trampolines
The launch cookie can now be transfered via the broadcast

Fixes: 220290671
Test: add Photos widget, return properly to widget
Merged-In: Ibfe9e5232317837f3111459212a4b016b5828ef4
Change-Id: Ibfe9e5232317837f3111459212a4b016b5828ef4
2022-02-21 23:07:57 +00:00
Vinit Nayak
a75f2ce2d2 Merge "Add null check for null task in getItemInfo()" into sc-v2-dev 2022-02-16 21:23:47 +00:00
Winson Chung
144b0504ad Merge "Prevent lingering divider animators in AbsSwipeUpHandler" into sc-v2-dev 2022-02-16 19:12:27 +00:00
Winson Chung
7faaffa56a Prevent lingering divider animators in AbsSwipeUpHandler
- Refactor the util method to create the animator and track the existing
  animation in AbsSwipeUpHandler to be able to cancel it if another call
  to change the visbility comes in.  Note that this doesn't address
  the case where the launch animation overlaps with swipe up (though that
  hopefully shouldn't happen in normal usage)

Bug: 213403679
Test: Tap in the gesture space while split
Change-Id: I078a7d0f22c2ef2ba847796ec79e740c789ce1ae
Merged-In: I078a7d0f22c2ef2ba847796ec79e740c789ce1ae
2022-02-16 17:13:48 +00:00
Jon Miranda
e44c403710 Fix bug where back swipe to icon in All Apps search result.
Issue is that All Apps is scaling during the animation, so when
FloatingIconView looks for it in the view hierarchy,
it's not in its final position.

This would be the cleanest approach for a scv2 fix

Bug: 213306709
Test: manual
Change-Id: Iaec77d15c9533edccd9c82164143af8fa522158f
Merged-In: Iaec77d15c9533edccd9c82164143af8fa522158f
(cherry picked from commit db767aa575)
Merged-In:Iaec77d15c9533edccd9c82164143af8fa522158f
2022-02-14 23:13:13 +00:00
Winson Chung
3db7cd137e Add fallback for missing remote animation callbacks
- In some cases WM won't callback the remote animation callbacks (neither
  start nor cancel) and Launcher never finishes executing the pending
  command (preventing the subsequent commands from running).  For the time
  being, just cancel the current state to allow the commands to be
  processed.

Bug: 194011186
Test: Mash on overview and home buttons with a 3p launcher

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: I1b1296fab316b979f441ebb474d1475e3fa68f95
Merged-In: I1b1296fab316b979f441ebb474d1475e3fa68f95
(cherry picked from commit bb530e9058)
Merged-In:I1b1296fab316b979f441ebb474d1475e3fa68f95
2022-02-14 23:13:10 +00:00
Winson Chung
ab5f39bdc0 Dispatch hover events through the input consumer proxy
- Touch explore uses hover events to focus views for accessibility, but
  we were dropping these events when handling them through the input
  consumer proxy.  The reason this changed is that in sc-v2 we moved the
  recents input consumer to the top of the task display area to ensure
  that it was always above any of the tasks in splitscreen, but by doing
  so, it was always above launcher even after settling in overview.  The
  existing path for handling motion events is heavily tied to touch
  handling (action down/move/up) so we just add a separate path for
  dispatching hover events through the normal mechanism to launcher via
  the consumer.

Bug: 197043796
Change-Id: I5f8cfd357ff13971fe172ce1d0179535479cd26c
(cherry picked from commit eff9a120c6)
Merged-In:I5f8cfd357ff13971fe172ce1d0179535479cd26c
2022-02-14 23:13:07 +00:00
Vinit Nayak
73c6288038 Add null check for null task in getItemInfo()
* Pass back an empty WorkspaceItemInfo with correct
itemType set on it so at least it can be identified
if remaining fields are missing.

Fixes: 218625473
Test: Wasn't able to repro crash
Change-Id: If20d8fa648edf6c210ad5398905bf78e173b23a1
2022-02-09 15:59:13 -08:00
Vinit Nayak
90e0fe3923 Add null check for mRemoteTargetHandles for side task launch
* Other checks haven't changed, only pulled them out into
separate block

Fixes: 215699962
Test: Unable to repro the crash, I tried ending the
activity and starting via adb shell, but I was never
able to get into the original if-block that triggered the NPE

Change-Id: I83320634f1d059de610176f9031682ca287bd589
2022-02-09 15:30:19 -08:00
Schneider Victor-tulias
a8dae26d39 Fix taskbar icon dragging issues
- Fixed icons disappearing when initiating dragging
- Fixed incorrect icon location when initiating dragging after rotating the screen to an orientation other than what launcher started in

Fixes: 215418478
Fixes: 214025075
Fixes: 210460544
Test: dragged icons from the workspace and taskbar
Change-Id: I848138af28802f7d806708c77c25b8de307c70d8
(cherry picked from commit 312b68fde4)
Merged-In: I848138af28802f7d806708c77c25b8de307c70d8
2022-02-01 18:27:59 +00:00
Suphon Thanakornpakapong
01d83fca48 Add toggles for recents action buttons 2022-01-29 20:10:37 +07:00