Commit Graph

52798 Commits

Author SHA1 Message Date
fazilsheik96 ba3e59dab9 Revert "Launcher3: Vibrate on double tap to sleep"
This reverts commit 1af663b25718697339f74fd15903000b3acfdd2a.
2024-03-12 00:47:54 +05:30
fazilsheik96 22a60606c7 Revert "Launcher3: Redesign recents overview action buttons"
This reverts commit 5bc3a91cc26119054009c91b2cb34142ba59b9e4.
2024-03-12 00:47:54 +05:30
fazilsheik96 6006d9205c [SQUASH]Revert "Launcher3: Add AppInfo Bottom Sheet from Shade Launcher"
This reverts commit 78e1005614.

Revert "SystemShortcuts: fix fc with InfoBottomSheet"

This reverts commit 2d2c5768a6.

Revert "Launcher3: Do not attempt to show promise icon when info is null"

This reverts commit a15d13d800.

Revert "Launcher3: Fix NPE with AppInfoBottomSheet"

This reverts commit 41e92c2a48.

Revert "InfoBottomSheet: Fix NPE with AppTransitionManager"

This reverts commit f9a5fb8402.
2024-03-12 00:47:54 +05:30
Adithya R 5c933b040d Launcher3: Exclude overview lens activity from recents
With lens activity starting as a new task, avoid showing Google
app in the recents tasks list.

Change-Id: Ib903292c64b854dcb38117d02edf5013f2855ac1
2024-03-12 00:47:54 +05:30
Erfan Abdi 43683dbe44 Launcher3: Fix Uninstalling work apps
Change-Id: I99bf35b014eb51199eece9fd3136bcc33ee512fb
2024-03-12 00:47:54 +05:30
Pranav Vashi b88dc1592e Launcher3: Use standard launcher method for uninstalling
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
Change-Id: Ic3e40ce48c77438c26f248e5ac878a29bfa479d2
2024-03-12 00:47:54 +05:30
Pranav Vashi 51344d13e3 Launcher3: Make spaces more consistent in overview container
Change-Id: I265f5308f056c9bfb15aa7f84878226fea672de4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:54 +05:30
Adithya R 88f61f8d80 Launcher3: Enable all apps themed icon pref conditionally
This toggle does nothing when themed icons are off globally.

Change-Id: I51f04bc8c06de3cae08ad8e738c7af7e3f74953d
2024-03-12 00:47:54 +05:30
Trishiraj dc01c1c040 Launcher3: Ability to toggle themed icons for all apps
Change-Id: I1a734f22375079c029e9ab2ad67e6aca9a84b2ac
Signed-off-by: Trishiraj <gamerprince.exp@gmail.com>
[@neobuddy89: Simplify code.]
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:54 +05:30
Harsh 043f301397 Launcher3: Apply themed icons in all apps drawer
Change-Id: I013d4b1e3280f44623d2c11f0f61d693f3c0ea27
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-03-12 00:47:54 +05:30
Adithya R 4eb6dc518d Launcher3: Use 2 rows for smartspace in 5x7 grid
Otherwise it doesn't fit in most cases.

Change-Id: I6b842613e17eeeab1bd8e78846362aa80d26f791
2024-03-12 00:47:54 +05:30
Alex Chau a062daf025 Allow items to be added alongside smartspace
- Allow icons to be added to first row where search container does not occupy
- On upgrade, clean up first row of screen 0 which may have junk data, as we used to assume first forw of screen 0 is always occupied

Bug: 210127246
Test: manual
Change-Id: I835a321964984e02632c8a70474a6551b5e360f7
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:54 +05:30
Adithya R db2e1b919c Launcher3: Improve tablet grid sizes
Adapt 6x6 grid to 26aa8c2 ("Making tablet grid scalable and tuning size")
and other misc improvements.

Change-Id: I76ad637908da82ca131a9d5a8657d83dcfa569d0
2024-03-12 00:47:54 +05:30
Adithya R d18e43744b Launcher3: Set FLAG_ACTIVITY_CLEAR_TASK for lens intents
Keep recents clean.

Change-Id: I0192444e920370d19483a94f02a6bb33d378997f
2024-03-12 00:47:54 +05:30
Adithya R 4aa72dfab8 Launcher3: Start lens activity directly instead of sharesheet
We don't need to open the sharesheet as we're targeting a specific
application (Google Lens).

Change-Id: I042b3a712dcf03eda21504b66cf99394b0bd4d2b
2024-03-12 00:47:54 +05:30
Adithya R 67b6936756 Launcher3: Go to home screen before launching lens activity
Avoid recents getting stuck when Google Lens is "Unable to open image".

Change-Id: I61ac95a8b4603b63b7d7c4edf73804c3e9738f91
2024-03-12 00:47:54 +05:30
tejasvp25 3ce3e1f052 Launcher3: Add ACCESS_SURFACE_FLINGER permission to manifest
Fixes
06-21 09:27:41.679   447   986 E SurfaceFlinger: Only WindowManager is allowed to use eEarlyWakeup[Start|End] flags

Change-Id: I9e68b318faafac4a2b34d73c703cf98168c2a32d
2024-03-12 00:47:54 +05:30
Phạm Tiên Sinh 96a6facdce Launcher3: Redesign recents overview action buttons
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
Change-Id: I0fd443c877eb2fa3d9a13a49f97339cdc7c12a81
[ghostrider-reborn: set tooltip text, improve bg color]
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:54 +05:30
Adithya R 06fe29e974 Launcher3: Update QSB lens icon (2023 edition)
From husky U1B2. Matches the latest Google search widget.

Change-Id: I02038530581f7d2900b1c069562fc0360b0e4b50
2024-03-12 00:47:54 +05:30
nift4 3636ccaac0 Launcher3: Disable recents 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.

Squashed:

Author: nift4 <nift4@protonmail.com>
Date:   Wed Aug 23 18:29:52 2023 +0200

    Launcher3: disable live tile - fix blur flicker

    As per minaripenguin's now reverted commits

    Change-Id: I4fc0918e5b39d225e09841fb2dc53ff52df87932

Change-Id: I33e6dab845b2147fd72fe0fb4c151e78035560ec
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:54 +05:30
Adithya R d6803013a3 Launcher3: Increase blur radius and alpha on overview
Change-Id: Ia22a48bf0bf13c85a63cee84d113506064911073
2024-03-12 00:47:54 +05:30
Adithya R 9f2c6712c9 Launcher3: Make overview transparent only if blur is enabled
Change-Id: Ibf71c795abd712eb8b7d8db2924b35efb67eabc0
2024-03-12 00:47:54 +05:30
ReallySnow 087772fa8a Launcher3: Make recents overview background transparent
[sourajitk]: Increment transparency alpha exponentially.

Change-Id: Ie97f80f0a67a18ec0741e8656adacf9291a2f9ea
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:54 +05:30
hydrangea07 13f507a758 Launcher3: Clear task snapshots remnants on 'onRecentsAnimationComplete'
- to avoid remnants on gesture start/swipe up

Change-Id: Ife5f05263e07afec2456c535734f6c12e7080c9c
2024-03-12 00:47:54 +05:30
LibXZR b1c71f95ab Launcher3: 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>
2024-03-12 00:47:53 +05:30
Sourajit Karmakar a983a3c2e2 Launcher3: Enable more animations when dismissing keyguard
Change-Id: I4b8a9eac67cdb5d95b1fb4e50fca0d1815edffbb
2024-03-12 00:47:53 +05:30
TimoDo 877e326173 Launcher3: Enable FORCED_MONO_ICON by default
Enables Android to automatically generate monochromatic icons to use for monet.

Some icons can look weird but it's still better than a mismatched homescreen

Only turns on when Themed Icons is enabled, so this seems fine

Change-Id: I4a4b84051a4e09fda40faa438706c25958713f4a
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:53 +05:30
Adithya R a3088a6eb7 Launcher3: Bring back developer settings on all builds
Change-Id: I93d7bb56728ed8e425130923169e5a454da69fdd
2024-03-12 00:47:53 +05:30
Adithya R 21c611e2c3 Launcher3: Introduce faster status bar expansion
Directly expand the notifications panel instead of relying on our
drag velocity. Also expand QS if swiped down on the right side of
workspace (similar to QS quick pulldown on status bar).

Change-Id: Idc82f69d9a69415ebe3815d95daea9279873f461
2024-03-12 00:47:53 +05:30
Adithya R 4a9870a76e Launcher3: Make clear all in recents overview optional
Keep it disabled by default.

Change-Id: I702360e7e53c05f64a37b82811c1e356dd2bf83a
2024-03-12 00:47:53 +05:30
jhonboy121 c63301e4c8 Launcher3: Show clear all button in recents overview
idoybh (YAAP): Keep rightmost

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
Change-Id: I02ccb39cfbaa987ce2b6a0ae81702e9a34fb215e
Signed-off-by: Ratoriku <a1063021545@gmail.com>
[ghostrider-reborn: handle vibration, add null check]
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:53 +05:30
Pranav Vashi 5b0b22ebd5 Launcher3: Add vibrate for all overview actions
Change-Id: Ib8e1d039ce47c0b99029dbcafcd9def59e07ad59
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
[ghostrider-reborn: simplify, add to recents end clear all button]
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:53 +05:30
LordShenron 94a75fe47d Launcher3: Vibrate on double tap to sleep
Change-Id: I1311fcccb8e179d34a02d89f26d826ebc5fc04ff
Signed-off-by: LordShenron <shen.priyanshu@gmail.com>
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:53 +05:30
nift4 61d397ac42 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
2024-03-12 00:47:53 +05:30
ot_vishavjot.kaur a1acf94d2f 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-03-12 00:47:53 +05:30
Dhina17 bd30f2b556 Launcher3: Use ClockDrawable from iconloaderlib
Fixes dynamic clock icon.

Change-Id: I3b9907603f07a908a3dfc9b7b0e3829fe15e5a46
2024-03-12 00:47:53 +05:30
nift4 273540bccf 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-03-12 00:47:53 +05:30
octocorvus c51360d5df Launcher3: Hide "all apps" view when search starts
Fixes an issue where apps from "all apps" view can still be launched
after search results are visible; which can cause a different app to be
launched when tapped on a search result, or unexpected app launches when
tapped on empty space (below search results).

Testing:
1. open app drawer and search for anything
2. quickly tap on a search result or empty space
3. if tapped on one of the search results, correct app is launched; if
   tapped on the empty space, no app is launched

Change-Id: I105db932b0beab79ba9a72c234f46be63249d81a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-03-12 00:47:53 +05:30
Adithya R 85725252e2 fixup! Launcher3: Allow widgets to have 1 row as minimum size
Change-Id: I602ebcc7a8d9d080356a853d7bdefdefd76aba2d
2024-03-12 00:47:53 +05:30
Yuan Si 47b4da961a Merge tag 'LA.QSSI.13.0.r1-12600-qssi.0' of https://git.codelinaro.org/clo/la/platform/packages/apps/Launcher3 into HEAD
"LA.QSSI.13.0.r1-12600-qssi.0"

* tag 'LA.QSSI.13.0.r1-12600-qssi.0' of https://git.codelinaro.org/clo/la/platform/packages/apps/Launcher3:
  RESTRICT AUTOMERGE Fix permission bypass in legacy shortcut
  [RESTRICT AUTOMERGE] Fix permission issue in legacy shortcut
  Launcher3QuickStepGo should have one Default Activity
  Launcher3QuickStepGo should have one Default Activity
  NIU Actions: Handle null default assistant
  Revert "Grant Launcher permission to access AppSearch"
  Prevent falling into OtherActivityInputConsumer when over lockscreen
  Fix testStressSwipeToOverview
  Fix issues with starting new recents animation before previous onRecentsAnimationStart
  Fixing ModelPreload cancelling existing load
  Allow One-handed gesture when densityDpi > 600

Change-Id: Ife9f070d4fa9c52acf4a010a338a97ecdb7ef086
2024-02-05 06:29:46 +08:00
Linux Build Service Account b4ccf0c696 Merge 885d8e590c on remote branch
Change-Id: I81bb1d63cc54cf141d58c53b7f08f8a04f867474
2024-01-09 22:45:38 -08:00
Android Build Coastguard Worker 885d8e590c Snap for 11162610 from 4c3de0829c to t-keystone-qcom-release
Change-Id: Id09bdc570186183ec1291bdb1dfe7a5a0aa9180c
2023-11-30 23:14:19 +00:00
Omkar Sai Sandeep Katadi 4c3de0829c Merge t-mpr-2023-12
Change-Id: I97f57d71b78b511508ef4ac8a7fb96f4bca5971c
2023-11-29 19:07:21 +00:00
Android Build Coastguard Worker 301971b900 Merge cherrypicks of ['googleplex-android-review.googlesource.com/24815763'] into tm-platform-release.
Change-Id: I6da66db37d016ee251006d58a77124998e06d23e
2023-10-13 19:41:48 +00:00
Pinyao Ting d3c2b23d60 RESTRICT AUTOMERGE Fix permission bypass in legacy shortcut
Intent created for Chooser should not be allowed in legacy shortcuts
since it doesn't make sense for user to tap on a shortcut in homescreen
to share, the expected share flow started from ShareSheet.

Bug: 295334906, 295045199
Test: manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:602cb48c72b4384b56214b87268c711aa422e4d8)
Merged-In: I8d0cbccdc31bd4cb927830e5ecf841147400fdfa
Change-Id: I8d0cbccdc31bd4cb927830e5ecf841147400fdfa
2023-10-13 19:40:15 +00:00
Pinyao Ting dad8e5f790 [RESTRICT AUTOMERGE] Fix permission issue in legacy shortcut
When building legacy shortcut, Launcher calls
PackageManager#resolveActivity to retrieve necessary permission to
launch the intent.

However, when the source app wraps an arbitrary intent within
Intent#createChooser, the existing logic will fail because launching
Chooser doesn't require additional permission.

This CL fixes the security vulnerability by performing the permission
check against the intent that is wrapped within.

Bug: 270152142
Test: manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f0261b5b38cd95bc1522780a7538a5f4ddc1b119)
Merged-In: I05ccbde0a873569f24af4d3675a86830ba54c43f
Change-Id: I05ccbde0a873569f24af4d3675a86830ba54c43f
2023-09-09 05:47:39 +09:00
Linux Build Service Account 8c56a12c66 Merge 34ece9b8e4 on remote branch
Change-Id: Ibe81ef0aefae337078e7a3191103315edaa6a361
2023-09-06 17:18:13 -07:00
Adithya R 94f486a9f2 Launcher3: Don't show uninstall shortcut in recents app menu
Recents glitches out momentarily when an app is unstalled directly
from its menu in recents. Having uninstall button there itself is
bad UX in the first place, it's enough to have it in the app's long
press menu in home screen/app drawer.

Change-Id: I9c1796215ac62424a1de59e9ff88c801c5278c04
2023-08-23 16:30:55 +00:00
Adithya R 22a5ac9d42 Launcher3: Add back uninstall button to app shortcuts
Fixup after qpr3 merge

Change-Id: Iaaa30d36e3fa05f5ced8c142e8c4be8ec23a84ce
2023-08-23 16:30:44 +00:00
Android Build Coastguard Worker 34ece9b8e4 Snap for 10678424 from 1711f06170 to t-keystone-qcom-release
Change-Id: I37ffa48d3287f5c81048953e8f94cad847ab9a0d
2023-08-18 06:16:05 +00:00