summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/model/PackageUpdatedTask.java
AgeCommit message (Collapse)Author
2021-08-17Removing widget preview cachingSunny Goyal
> All previews are generated on demand when the corresponding header expands > Using ItemAnimator to animate layout changes when preview loads Bug: 196238313 Test: Manual Change-Id: I0cb859c8443c2c536399e4063f58baecfc7416ad
2021-06-17Merge "Refresh widgets in the model when packages change" into sc-devStevie Kideckel
2021-06-17Refresh widgets in the model when packages changeStevie Kideckel
Fix: 191163748 Test: local sample app Change-Id: Ic09ad11cabf6efa471fb6e685cb255c4a17493ee
2021-06-16Fix broken app icon on restart during install.Schneider Victor-tulias
Fixes: 186610233 Test: manual with backup/restart and restart during install Change-Id: Ic64bd98758bc2e1a2a1562579cb25de02faa624c
2021-02-12Fixing shortcut intent getting cleared during backup/restoreSunny Goyal
Bug: 174570283 Bug: 156871815 Test: Verified on device Change-Id: Ie286ee783bfe96c5b2be28f0db5298caf3801e6d
2021-02-03Fix icon flicker on transition from installing, to installed, to downloading ↵Schneider Victor-tulias
incrementally. When an app finished downloading, we assumed that its progress level was 100%. This caused flicker in apps that supported incremental downloads. Added a check for the total download progress on app installation. demo: https://drive.google.com/file/d/11NwwhHj_4rmDFwpsb8gTX-uA5YSinjSj/view?usp=sharing Fixes: 178745816 Test: manual Change-Id: I08328296db2ce2c2242fc4fe87158ff4b911c659
2021-01-20Revert "Revert "Add UI updates for incremental app installs.""Schneider Victor-tulias
This reverts commit 6e60380abb66c904ac4a291a64ab6224acd8be40. Reason for revert: revert was unnecesary Change-Id: I021769e929d3026b23c5f644e2ee629cec21a301
2021-01-19Revert "Add UI updates for incremental app installs."Schneider Victor-tulias
This reverts commit b803f7e2cb8dbaab2c1453693c61155c03fd90c8. Reason for revert: causes b/177642572 Change-Id: I48b85e8495734a2d3a7b477dfb20929879465b6a
2021-01-12Add UI updates for incremental app installs.Schneider Victor-tulias
1. Changed Preload Icon UI to be grayscale while the app is not startable. 2. Added progress bar for when app is installed but still ownloading. 3. Updated Preload Icon progress and click handling to use new incremental api. Progress bar color updates will follow in a separate CL. Demo: https://drive.google.com/file/d/1H1EvtTorLeJwC1eiq10tm-TT81YZ6osk/view?usp=sharing Fixes: 176901235,176992421,176884453 Test: manual Change-Id: Ie0575dc56c33c5d6ecd6c5cbf00666b96d6dcb16
2020-08-12Removing static state management from the install shortcut queueSunny Goyal
Change-Id: I0b74a843b2081ee314e0840d5ea8ab8ddabde32b
2020-07-29Changing minimum supported Launcher version to 26Sunny Goyal
Change-Id: I49fcf874430ac53c3246371e179fbd828e14e4da
2020-07-10Creating a common method to iterate over all model items.Sunny Goyal
This would allow adding different source for model items without modifying every model task Bug: 160748731 Change-Id: I5a14dd761e2b8696c58dc8fec7b14077da0aced3
2020-06-08Removing multiple system RPCs to packageMAnager and userManager from UI threadSunny Goyal
Bug: 158427348 Change-Id: Ibb1837fe932000b69cf5683bb01727fc32abca91
2020-04-22Removing tracing for a fixed bugvadimt
Bug: 139891609 Change-Id: Ic7c988f06022b82685a3216154a47783ef2ec98b
2020-04-09Moving model data structures to a separate fileSunny Goyal
Change-Id: I77ad7a5219e72d2e0d6c1803de2ac3ed6a65a8f7
2020-01-02Removing static reference of deep shortcut managerSunny Goyal
Bug: 141376165 Change-Id: Ie60b82be63a8926825598c681d8b2a1b2ace6413
2019-12-11Removing static instances of UserManagerCompat and AppWidgetManagerSunny Goyal
> Changing the lifecycle to follow other static objects in Launcher > Removing compat interface and inlining everything to helpers Bug: 141376165 Change-Id: I82bd5db1969101de9a7eac77f32728d70195bb35
2019-10-28Storing BitmapInfo instead of icon and color directly in itemInfoSunny Goyal
This will allow subclassing BitmapInfo to support custom icon/dynamic icons which can be loaded on the background thread instead of going through IconFactory which runs on UiThread Change-Id: Ieced6e91330bdff1b505826d097a8df711dfe967
2019-10-02Removing static instance of LauncherAppsCompat and unnecessary wrapper classesSunny Goyal
Bug: 141376165 Change-Id: I8c1f1ab7d83ec50fe9c7bf39960ef9c360025ec7
2019-09-24Merge "Fixed a bug where restored promise icons stay promise icons." into ↵Jon Miranda
ub-launcher3-qt-future-dev am: 32a3421f1a Change-Id: Ic8c429b151e4e679c7e38e0b33bc30f885dd4ba1
2019-09-24Fixed a bug where restored promise icons stay promise icons.Jon Miranda
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)
2019-09-16Merge "Add Logs to track app uninstall and icon removal" into ↵Samuel Fufa
ub-launcher3-qt-future-dev am: 2b06908252 Change-Id: I638ad5d2f48a577503b8925253152e0a9b42ab6d
2019-09-16Add Logs to track app uninstall and icon removalSamuel Fufa
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
2019-09-12Removing flag overrides. All flags should be defined as togglable flags instead.Sunny Goyal
Change-Id: Ia7b9ff84413096cd5b0c4a9a81a232019f2522d2
2019-08-22Merge "Adding tracing for suspending via Wellbeing" into ↵vadimt
ub-launcher3-qt-qpr1-dev am: 418787778b Change-Id: Id8869a40893ef596b3ad50275d8e9bfa3fdac2c4
2019-08-22Merge "Adding tracing for suspending via Wellbeing" into ↵TreeHugger Robot
ub-launcher3-qt-qpr1-dev
2019-08-22Adding tracing for suspending via Wellbeingvadimt
Bug: 139891609 Change-Id: I3ffb7941f7c4015cba3c65d87e20ccc6be920592
2019-08-22Add support for adding promise icons for new install sessions by user.Jon Miranda
- 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
2019-08-22Add support for adding promise icons for new install sessions by user.Jon Miranda
- 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
2019-07-25Separating apps list callback from model callback and simplifying various eventsSunny Goyal
Bug: 137568159 Change-Id: I4d8bb5c01cabe642731ebd3f57fe15bdc5a569b7
2019-04-22Removing ShortcutInfoCompat and directly using ShortcutInfoSunny Goyal
Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
2019-04-16ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal
Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
2018-10-19Setup make icon-loader libraryHyunyoung Song
Bug: 115891474 Test: make -j10 icon-loader Next step: Launcher will depend on icon-loader in next CL Change-Id: I797ddb857cf8be79f3be6ca2f174c593ca3713a5
2018-10-08Converting long item IDs to intSunny Goyal
> Items ids were already being typecasted to int when being bound on the UI > Using a consistent type allow better use of platform data-structures > Adding IntArray and IntSet as a replacement for various Collection classes Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
2018-09-26Move IconNormalizer/ShadowGenerator/LauncherIcons to icons packageHyunyoung Song
Bug: 115891474 Sending out the package name changing CL first before I make LauncherIconsHandler and tests around it. Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
2018-09-21Removing additional rpc due to icon cache updateSunny Goyal
When launcher loads, it fetches the list of apps twice, once for loading all-apps and again for updating icons. Instead reusing the previously fetched apps list. Also moving the icon loading in a separate package for further generalization Change-Id: Ibd2dae56e6027a31b633da030bc6b43a90b27e1b
2018-09-07Fix auto install add of installed activityTobias Dubois
Reset the restore status for auto install icons where the activity is installed and enabled so the item is not stuck in the auto install state. Bug: 112664405 Test: manual - See issue Change-Id: I37116b6e6ecbe4215d96627f9b1ea6909d12a6c0
2018-09-05Gracefully fallback to new ComponentName if one is renamed/removedTony Wickham
Previously, if a developer renamed their launcher activity, we removed all instances of their icon from the home screen, since technically the activity they pointed to no longer exists. However, in the vast majority of cases, the developer simply renamed their activity and nothing should change from a user's perspective. So instead of removing icons that no longer point to a valid activity, we now redirect them to point to the first activity in the manifest (or remove them if there is none). Test: - Install app with Activity A and place on home screen - Rename A to B and reinstall - verify home screen icon remains - Add new launcher activity C - verify icons still go to B - Force stop launcher and rename B to A - verify icons go to A (same activity) - Remove activity A - verify icons go to C - Remove activity C - verify icons are removed Bug: 28907647 Change-Id: If9da251bd588908c4c425e7dd32e38fcbe54bab2
2018-08-27Using a placeholder icon shape instead of low-res/blurry iconSunny Goyal
Bug: 111142970 Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
2018-05-30Deleting invalid icons when an app is restoredSunny Goyal
When a app is restored, it may not be in exactly the same state as it was when backed up. Some components might be missing, and some shortcuts may be disabled or unavailable Bug: 63525806 Change-Id: I09e6c0e9a9d2c1e8ccd73430f94bd065bdf2718e
2018-01-09Making LauncherIcons thread safeSunny Goyal
Creating a pool of LauncherIcons so that they can be used from multiple threads Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
2018-01-03Dominant color is part of icon cacheSunny Goyal
> Calculating extracted color during icon generation and storing it in model and DB > Removing unused logic avoid various types of badge rendering > Icons are badged with extracted colors, while folder is badged with theme color Bug: 35428783 Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
2017-10-31Moving various runtime flags into the common base class.Sunny Goyal
Caching the ststemApp status for workspace shortcuts. Change-Id: I25663e1f04a9768afcca000294adcbb00ea1db7b
2017-10-17Launcher state management cleanupSunny Goyal
> Removing Widgets and related states > Fixing different durations being used when opening/closing all-apps > Removing some unnecessary object allocations when changing state without animation > Differentiating widget bootm sheel and full sheet in logs Bug: 67678570 Change-Id: Ic169528736d04ee0b38564b4f96595ba066eabda
2017-09-18Fixing widgets not getting restored when the corresponding system app is enabledSunny Goyal
Bug: 64723295 Change-Id: I143b554087e6ff8cfbdb5f02d53fdcc7a1ce3b12
2017-09-11Merge "WallpaperManagerCompat should target correct platform Also replace ↵TreeHugger Robot
Utilities.isAtLeastO() to static final constant. Bug: 65544683" into ub-launcher3-dorval-polish2
2017-09-11Fixing promise icons not getting restored after the app is installedSunny Goyal
Bug: 65387781 Change-Id: I8f6ca6695ad074a707b574af9499586fdd90d5c1
2017-09-11WallpaperManagerCompat should target correct platformHyunyoung Song
Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
2017-08-28Adding support for badging instant app icons.Sunny Goyal
Change-Id: Idc43a1a83e0a93f70879730a0acefbc124f9c0e2
2017-08-24Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler
Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826