summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
Commit message (Collapse)AuthorAgeFilesLines
* Persist predicted items when dragged to workspaceSamuel Fufa2019-12-041-1/+1
| | | | | | Bug: 143787549 Test: Manual Change-Id: Ieff0ede4072a2a9a87a62b06ad846eedfe97583f
* Add additional shortcutExists check to prevent same app from being auto added.Jon Miranda2019-11-041-0/+9
| | | | | | | | | | Since we made the change to treat all auto added workspace items as promise icons, the initial shortcutExists check breaks since its comparing the promise intent to the actual app intent. This additional shortcutExists check can compare the proper intents. Bug: 143803446 Change-Id: Ifa27b15205d6e17f83a4437ac175d51815688c84
* Fix bug where Files app keeps getting added to the workspace.Jon Miranda2019-10-301-0/+5
| | | | | | | | Caused by mainline updates where Files app session commit is broadcasted. Launcher workaround is to not auto-add system apps to the workspace. Bug: 139663018 Change-Id: Id61532bd0df2cd5f3bdfc28a3616ba5e5ff3d18a
* Add support for work profile promise icons.Jon Miranda2019-10-241-12/+17
| | | | | | | | | | | | - We were not getting callbacks for sessions created under work profile. - We did not pass in the user when creating the workspace item infos. - Added check for if app is installed before adding item to workspace to prevent any stale promise icons. This seems to happen when uninstalling and then immediately reinstalling an application. Bug: 141556707 Change-Id: Ie0320f3ede70b6c7543cb60c3b95a2fe398eecb5 Merged-In: I2db2d8da449c37eb248a59fbc9e7b517f50855c1
* App title in Widget list shouldn't be actionable by a11y methodsSamuel Fufa2019-10-011-0/+3
| | | | | | | Bug:139913027 Test:Manual Change-Id: I2a5d5551d09ee2bc96444164ed77225a3b4a829a (cherry picked from commit d3720c210b2b0fbb508bd9f16b88b10e4b001149)
* Revert "Revert "Revert "cache shourtcut image"""Pinyao Ting2019-10-011-22/+7
| | | | | | | | This reverts commit d13f0c5c45550bffc335f47f1a0c545df68c0584. Reason for revert: app crashes when adding widgets automatically b/141568904 Change-Id: I5b97f440716c93b1bd93c899e3e1d40e8bbd2885
* Fixed a bug where restored promise icons stay promise icons.Jon Miranda2019-09-241-1/+4
| | | | | | | | | | | | | | | | Test: 1 Turn off WiFi 2 Install app. (Promise icon gets added to home screen). 3 Backup launcher. 4 Restore launcher. 5 Turn on WiFi 6 Note promise icon gets updated with as installation progresses. Will submit to future/master later. Bug: 140212732 Change-Id: I63cedc6c16f5028297fb1a0852ffbd4473319ae9 (cherry picked from commit 0e1b17f8c49c8bb149b3779e30b3cca17e2b8659)
* Exclude shortcuts in popup from IconCache.Pinyao Ting2019-09-201-2/+2
| | | | | | | | We want to load from/save icons to icon cache for pinned shortcuts only to reduce memory footprint. Bug: 140242324 Change-Id: I25c7d59e29c6e27752b36c2c3c226849d4e177af
* Merge "Fix app crash on deep shortcut restore" into ub-launcher3-qt-future-devSamuel Fufa2019-09-192-3/+4
|\
| * Fix app crash on deep shortcut restoreSamuel Fufa2019-09-192-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Although the recovery logic for app shortcuts and deep shortcuts are mostly the same, in deepshortcut's case we don't care about the component name. This CL fixes the bug where we reset the intent if the activity a deepshortcut points to is not found. resetting the intent is problematic as we'll need the shortcut id (which is stored as an extra on the intent) to recover the deep shortcut using pinned shortcuts. Bug: 140819317 Change-Id: I22f0266b98a9f6175303cc92a85397e240443250
* | Fix BindWidgetTests.Jon Miranda2019-09-171-2/+5
|\ \ | |/ |/| | | | | | | am: 6ed680258e Change-Id: Ifca5fc650f88bd18985f264ccf4d0c33698faf52
| * Fix BindWidgetTests.Jon Miranda2019-09-171-2/+5
| | | | | | | | | | | | | | | | Broken by change I03c31bb308fc496b9fc633c2fde23ae4568f8c44. Bug: 139281702 Test: Ran BindWidgetTest with 8/8 successful. Change-Id: I6a03744c9cd919316ff27b12c50acc70c91d47fa
* | Key by both package and user for list of active install sessions.Jon Miranda2019-09-173-9/+21
|\| | | | | | | | | | | am: c1322b6ac8 Change-Id: I112298649de8f9abd0898fdf4feda02395b7a31c
| * Key by both package and user for list of active install sessions.Jon Miranda2019-09-173-9/+21
| | | | | | | | | | | | | | | | This fixes the bug where items are left on the home screen for the wrong user. Bug: 139281702 Change-Id: I03c31bb308fc496b9fc633c2fde23ae4568f8c44
* | Merge changes from topic "cache-shortcut-image" into ub-launcher3-qt-future-devPinyao Ting2019-09-171-7/+23
|\ \ | | | | | | | | | | | | | | | * changes: fix the issue update handler tries to cache a shortcut without valid bitmap. Revert "Revert "cache shourtcut image""
| * | Revert "Revert "cache shourtcut image""Pinyao Ting2019-09-161-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f3d58f1f84192a0446ba3bf2fcfd773ad538bdde. Reason for revert: Rolling forward for development and fixes. Bug: 140242324 Change-Id: I954cface2e50a5a9a5e143d2ea29fbcebb298ede
| * | Revert "cache shourtcut image"Pinyao Ting2019-09-161-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 050f9b1279d924d211ba8572876e9ada55a541f0. Reason for revert: Test failure on ub-launcher3-master (b/140998509) Possible Root Cause: This happens when fallback image or default icon was used for shortcut icon, but shortcut caching logic do not have the logic to create either fallback image or default icon. So upon updating icon cache, the icon remains to be null, causing an NPE. Change-Id: I1ee3bb7a3cab2af5730c2ee77d9370c1578a9ad6
| * | cache shourtcut imagePinyao Ting2019-09-121-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deep shortcuts now supports icon cache. When workspace is being loaded, we will now attempt to load deep shortcuts from memcache/db. The icon for deep shortcuts loaded in the workspace is saved to memcache/db after the workspace is loaded. Bug: 140242324 Change-Id: I49da8319ad203476fe1e45683e2848dbde3473f2
* | | Add Logs to track app uninstall and icon removalSamuel Fufa2019-09-162-4/+11
|/ / | | | | | | | | | | | | | | | | | | Some users are affected by a bug that keeps orphaned app icons after a package is uninstalled. Since we are unable to pinpoint to what exactly is causing this, we're adding logs so we could tell where exactly things are failing. Bug: 124817089 Change-Id: If168935115a7d323fd60c2b19426c1dbd43dbce3
* | Merge "Fix RequestPinItemTest, broken by my manual merge." into ↵TreeHugger Robot2019-08-291-6/+4
|\ \ | | | | | | | | | ub-launcher3-master
| * | Fix RequestPinItemTest, broken by my manual merge.Jon Miranda2019-08-221-6/+4
| | | | | | | | | | | | | | | Bug: 139880994 Change-Id: I7f6e1dda6cf4497bccf7ea682739bacd12079d4d
* | | Merge "Add support for searchwidget in layout files." into ub-launcher3-masterTreeHugger Robot2019-08-231-7/+16
|\ \ \
| * | | Add support for searchwidget in layout files.Samuel Fufa2019-08-231-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | Test: Manual Bug:139703885 Change-Id: I86b36187d95bb5db59dbf6ae2e20373d23e55aa1
* | | | Merge "Adding tracing for suspending via Wellbeing" into ↵vadimt2019-08-221-0/+5
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | | | | ub-launcher3-qt-qpr1-dev am: 418787778b Change-Id: Id8869a40893ef596b3ad50275d8e9bfa3fdac2c4
| * | Merge "Adding tracing for suspending via Wellbeing" into ↵TreeHugger Robot2019-08-221-0/+5
| |\ \ | | | | | | | | | | | | ub-launcher3-qt-qpr1-dev
| | * | Adding tracing for suspending via Wellbeingvadimt2019-08-221-0/+5
| | | | | | | | | | | | | | | | | | | | Bug: 139891609 Change-Id: I3ffb7941f7c4015cba3c65d87e20ccc6be920592
| * | | Add support for adding promise icons for new install sessions by user.Jon Miranda2019-08-224-6/+44
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added flag PROMISE_APPS_NEW_INSTALLS - Promise icons only added if flag (above) is on, as well as the setting for "Add icon to Home screen" - Maintains a list of session ids of promise icons that have been added to the home screen, so that if the user manually removes the icon, we do not add it back to the home screen when the install is completed. - Queues all applications as promise icons, and replaces with actual app info when its being added to the workspace. Bug: 135633159 Change-Id: Idf2fc9033f890afef924628b76b89ad4692f529c Merged-In: I411db59f9bd1b346d98b9bb73f5376a5983b8de5
| * | Adding support for storing keywords in iconCacheSunny Goyal2019-08-142-8/+7
| | | | | | | | | | | | | | | | | | Change-Id: I1183e63a6556ebfb3eee5df23d149e09728193a9 Merged-In: I1183e63a6556ebfb3eee5df23d149e09728193a9 (cherry picked from commit e529a86fbd2eaf7b13575af6b6adf0eb6e25e45c)
* | | Add support for adding promise icons for new install sessions by user.Jon Miranda2019-08-225-7/+47
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | - Added flag PROMISE_APPS_NEW_INSTALLS - Promise icons only added if flag (above) is on, as well as the setting for "Add icon to Home screen" - Maintains a list of session ids of promise icons that have been added to the home screen, so that if the user manually removes the icon, we do not add it back to the home screen when the install is completed. - Queues all applications as promise icons, and replaces with actual app info when its being added to the workspace. Bug: 135633159 Change-Id: I411db59f9bd1b346d98b9bb73f5376a5983b8de5
* | Moving various common executors to a single locationSunny Goyal2019-08-203-15/+15
| | | | | | | | Change-Id: I44bca49b8adb6fa22c3b48d10f674e42c28d792c
* | Refactoring some folder binding logic:Sunny Goyal2019-08-141-3/+3
| | | | | | | | | | | | | | | | > Moving grid calcutation in a separate class > Moving content saving logic to folder instead of relying on item bind Bug: 139051851 Change-Id: I81b226dbebe13652482a767c992e8cc8f4f35a60
* | Add a "Dismiss" option for predicted apps in LauncherSamuel Fufa2019-08-132-0/+12
| | | | | | | | | | | | Test: LongPress on a pridicted app to see dismiss options. Bug:139020180 Change-Id: I877863c65def0d845c0ae2f0987fe7a4f6277565
* | Merge "Moving section names to model, to avoid an unnecessary hashmap" into ↵TreeHugger Robot2019-08-131-0/+13
|\ \ | | | | | | | | | ub-launcher3-master
| * | Moving section names to model, to avoid an unnecessary hashmapSunny Goyal2019-08-061-0/+13
| | | | | | | | | | | | Change-Id: I9620367e0c2203b2290a4a188411ccb9174ae130
* | | Adding support for storing keywords in iconCacheSunny Goyal2019-08-072-8/+7
|/ / | | | | | | Change-Id: I1183e63a6556ebfb3eee5df23d149e09728193a9
* | Separating apps list callback from model callback and simplifying various eventsSunny Goyal2019-07-2513-128/+360
| | | | | | | | | | Bug: 137568159 Change-Id: I4d8bb5c01cabe642731ebd3f57fe15bdc5a569b7
* | Merge "Moving some utilities methods to separate class" into ub-launcher3-masterTreeHugger Robot2019-07-182-4/+6
|\ \
| * | Moving some utilities methods to separate classSunny Goyal2019-07-172-4/+6
| |/ | | | | | | Change-Id: I5094b22ddc77c45590cea1a5f5dead0dc7580abf
* / Removing global state from DeepShortcutManagerSunny Goyal2019-07-172-5/+4
|/ | | | | | This makes DeepShortcutManager thread-safe and avoids any locks Change-Id: If4593b3541da6259591ff7a607efa58158006481
* Filling in content values on the worker threadSunny Goyal2019-04-251-30/+32
| | | | | | | | | | Writing to disk hapens on the worker thread, so if we create content values on UI thread, some values can change before it is written to disk. This happens in case of shortcuts, where the badge is applied after the icon is queued, but before it is written Bug: 131303610 Change-Id: Ic35b17071d4ed3e5c5fee9f003a225e4ffdc74f3
* Removing ShortcutInfoCompat and directly using ShortcutInfoSunny Goyal2019-04-225-22/+21
| | | | Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
* ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal2019-04-1611-95/+93
| | | | | | Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
* Fixing restore flag not getting persistedSunny Goyal2019-04-091-1/+2
| | | | | Bug: 127766994 Change-Id: I8e887232b9fc31a850f7675c79b329ce8897db71
* Adding a utility class to listen for app launchesSunny Goyal2019-03-261-0/+56
| | | | Change-Id: I62e82a6e04b7101773d98c6e7aec574facd053fe
* Make QSB_ON_FIRST_SCREEN a boolean.Jon Miranda2019-03-153-5/+3
| | | | | Bug: 118140522 Change-Id: Ic8e47e71f538b0b0caff6f630566665d05a65522
* Merge "Fixing launcher UI not reapplied properly when IDP changed as a ↵TreeHugger Robot2019-03-112-15/+22
|\ | | | | | | result of display changes" into ub-launcher3-master
| * Fixing launcher UI not reapplied properly when IDP changed as a result of ↵Sunny Goyal2019-03-062-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | display changes > Removing unnecessary check when binding model data as its safe to bind old data, we should just not persist it (that check is already there in model writer) > Adding additional check in model bind to skip old bind if there are multiple binds Bug: 126259547 Bug: 118441555 Change-Id: Ic250d2af13797d3e70c6e1fc70da65ebe6ab8d70
* | Fix bug where folder items preview remain in low res state.Jon Miranda2019-03-081-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | - We update the ranks of all folder items after loading, to ensure there are no gaps caused by removed folder items. This also ensures that we load the high resolution icons for all preview items. - FolderIconPreviewVerifier#setFolderInfo was not always called - Init mGridSize with [1, 1] to prevent divide by zero error in case setFolderInfo is not called Bug: 126268196 Change-Id: I856489968665a39303e2922c78cf90f2b3ee6ebb
* | Add launcher support for restoring work profile items onto workspace.Jon Miranda2019-03-071-3/+3
|/ | | | | Bug: 111301511 Change-Id: I40decf4c763401c97afcc2bfa7954a1f3a03f536
* Merge "Removing diagnostics" into ub-launcher3-masterTreeHugger Robot2019-01-303-20/+0
|\