summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
Commit message (Collapse)AuthorAgeFilesLines
* [DO NOT MERGE] fixing build breakSunny Goyal2015-07-151-1/+1
| | | | Change-Id: Ief14e03874626d4f6fdf403d98950d9d64b66160
* [Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper userSunny Goyal2015-07-151-1/+8
| | | | | Bug: 21673750 Change-Id: I1e03c3cb10a87e394e963cc2001c9c1c293eb2ca
* Catch TransactionTooLargeException when loading widget provider listHyunyoung Song2015-06-091-17/+42
| | | | | | | | b/19904873 Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3 Note: fix for almonte will be separate due to diff btw the branches.. (cherry picked from commit 3abd5488cca5b06c97251db453a5a6ed61e33ce8)
* Remove duplicate calls to getSortedWidgetsAndShortcutsHyunyoung Song2015-04-201-13/+23
| | | | | | b/19904873 Change-Id: I2e56bc0c7524caa2ef3c5fb00f35cb032cd1860b
* Don't clobber widgets with the same component - DO NOT MERGERobin Lee2015-03-191-20/+27
| | | | | | | | | By not storing them in a HashMap keyed against ComponentName (which is almost guaranteed to conflict with other widgets when managed profiles are in play). Bug: 19444068 Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
* Fix widget refresh issue on package install/uninstallHyunyoung Song2015-03-111-9/+8
| | | | | | | | Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java b/19658229 Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
* Fix ClassCastException due to typoAdam Cohen2015-01-301-1/+1
| | | | | | issue 19159790 Change-Id: I5f9fa0e3672c10a460606dcb13b158bd4e614813
* Adding accessibility controlsSunny Goyal2015-01-161-191/+215
| | | | | | | | | | | > Adding 'Remove' option to workspace items > Adding 'Add to workspace' to all apps and widget list items, which adds the item to the first available space, giving preference to the current workspace screen > Adding 'App info' and 'Uninstall' options to appropriate items Bug: 18482913 Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
* Adding a rank column for itemInfoSunny Goyal2015-01-131-2/+8
| | | | | | | | > Rank is used to determine position of an item in a folder. Bug: 18590192 Change-Id: I2826a7c570b4cc58e719d685f17a24ec6133804f
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-43/+80
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Disabling auto addition of managed profile shortcutsSunny Goyal2014-11-201-3/+6
| | | | | Bug: 16188104 Change-Id: Ib6464c22140df6d60112eb35f5983718b3db6288
* Adding shortcuts corresponding to ManagedUsers automatically.Sunny Goyal2014-11-121-37/+101
| | | | | Bug: 16188104 Change-Id: Ic07578dd187263f59f3c431cbb78dea90d0c24f4
* Merge "Deleting workspace items from db which have an invalid placement" ↵Sunny Goyal2014-10-231-21/+7
|\ | | | | | | into ub-now-queens
| * Deleting workspace items from db which have an invalid placementSunny Goyal2014-10-161-21/+7
| | | | | | | | Change-Id: I1d616e8cd533acd6ecd334d85e6468163f31f6a4
* | Merge "Updating ItemInfo objects in the worker thread" into ub-now-queensSunny Goyal2014-10-211-79/+114
|\ \
| * | Updating ItemInfo objects in the worker threadSunny Goyal2014-10-141-79/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Launcher was making non-trivial updates to ItemInfo objects on UI thread. These updates were getting skipped when the Activity gets destroyed (possibly due to onConfigurationChange) > Unregistering SessionCallback on application onTerminate, rather than activity onDestroy Bug: 17941096 Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
* | | Showing widgets in a disabled state, when running in safe modeSunny Goyal2014-10-161-1/+1
| |/ |/| | | | | | | | | Bug: 15172107 Change-Id: I7209836ca4ffacde7b7b232e230e9b9f1a0e54bb
* | Adding NPE check in InstallShortcutReceiverSunny Goyal2014-10-141-18/+3
|/ | | | | | | > Removing some unused methods Bug: 17971165 Change-Id: I1bc5c764fd65b44c950a58371b60d2b53c221995
* Keeping icons in disabled state when SD-card is unmountedSunny Goyal2014-10-081-48/+75
| | | | | | | | | | > changing shortcutInfo.isDisabled to be a flag based variable > on received OnPackageUnavailable, icons are disabled from desktop instead of being removed. Icons in all apps are removed Bug: 15852084 Bug: 16238283 Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
* Updating icons for sortcuts when the target app updates.Sunny Goyal2014-10-071-24/+43
| | | | | Bug: 17398260 Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
* Cleaning up icon resizing codeSunny Goyal2014-10-071-2/+2
| | | | | | | | > For resizing icons, scaling them down instead of cropping them > Removing duplicate methods and variables Bug: 17663119 Change-Id: I0f270860c0edaaa939495e63e05da841a603f6e9
* Don't let old Launcher activity interfere with new oneAdam Cohen2014-09-301-0/+4
| | | | | | | | | | | | | | | | | | -> Launcher uses a static instance of it's loader (across multiple activities) since activities can come and go (configuration change, eg.) but the data model and loading is static. -> Currently, this is not robust to a sequence of events that looks like onCreate(instance A), onCreate(instance B), onDestroy(instance B) -- depending on the timing of those calls. -> This CL addresses a symptom of the above scenario by not allowing an older Launcher Activity cancel the loader / clear the callbacks for a newer Activity. Bug 17679693 Change-Id: I8ece93e288464b0d578b9669c165b67132d997ed
* Fixing loadWorkspace being called multiple timesSunny Goyal2014-09-261-4/+4
| | | | | | | | Using right intent when refreshing shortcut icons Bug: 17662782 Bug: 17663766 Bug: 17569197 Change-Id: I8d698c5e2145b8412aff9978db4ec930d89f7f24
* Merge "Updating promise icon's bitmap and label when onBadgingChanged is ↵Sunny Goyal2014-09-191-0/+14
|\ | | | | | | received" into ub-now-porkchop
| * Updating promise icon's bitmap and label when onBadgingChanged is receivedSunny Goyal2014-09-191-0/+14
| | | | | | | | | | Bug: 17583799 Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
* | Adding support to delete unrestored icons and widgetsSunny Goyal2014-09-191-14/+46
|/ | | | | Bug: 17584719 Change-Id: If8e76fc80ea885c9004c50b7b6a9353525a50105
* Turn off debugging for launch.Chris Wren2014-09-121-1/+1
| | | | Bug: 17483474 Change-Id: I8dd24ba08ffe0773f4d68739b30b829021d69902
* Don't remove content URI shortcuts during restoreSunny Goyal2014-09-051-0/+4
| | | | | issue: 17373897 Change-Id: I2760f779d89be76cc1ace749b0c1893da80d07e1
* Handling label and icon from SessionInfo.Sunny Goyal2014-09-041-58/+73
| | | | | | | | | > The ShortcutInfo stores state as bit flags and not as ints > Intents of auto-install shortcut are automatically updated upon installation > Icons/titles for active sessions are cached in IconCache Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
* Improving restored widget behaviorSunny Goyal2014-08-271-52/+64
| | | | | | | | | | | > Clicking a broken widget install shows a dialog similar to an app icon > Clicking remove on the dialog removed all components for the corresponding package > Widget pending view shows 'Setup' text instead of icon, if there is enough space Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
* Adding support for managed profiles in widgetSunny Goyal2014-08-201-62/+18
| | | | | | issue: 16892811 Change-Id: If8c81f2a5a3bc846b02a5d225c5a8f27b1382dab
* Updating the ui for widget restore flowSunny Goyal2014-08-121-2/+2
| | | | | | | | | | | | | | > Pending widget show a PreloadIconDrawable to indicate installation progress > Only the concerned widgets are reinflated on package install and not the whole workspace. > Adding support for storing default package icon in IconCache issue: 10779035 issue: 16737660 Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
* Autoinstalls loading xmlSunny Goyal2014-08-121-1/+1
| | | | | | | | | | > Launcher checkes for an apk in the system image with a broadcast receiver for action: com.android.launcher3.action.LAUNCHER_CUSTOMIZATION > Default layout is parsed from that apk, which can also contain icons and string resources used in the layout config Change-Id: I44fc9e7c3134f525f7b5db29f4e8bb56e17ce445
* Adding support to restore widgets even for jelly beans.Sunny Goyal2014-08-081-25/+37
| | | | | | | | | | | | | | | > Show 'widget-not-ready' until the widget app is installed > Once the app is installed, bind a new widget id (not required on L if id-remap was received). **Remove the widget if bind failed > If the widget has no configuration screen, show the widget, otherwise show 'setup-widget'. > Clicking 'setup-widget' shows the config screen, and updates the widget on RESULT_OK. issue: 10779035 Change-Id: I2f8b06d09dd6acbc498cdd93edc59c26e5ce17af
* Implementing a package install progress listener for LSunny Goyal2014-08-011-3/+4
| | | | | | issue: 15835307 Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
* Modify code so it compiles on google3Sameer Padala2014-07-291-3/+4
| | | | | | The diamond operator isn't supported on google3 Android projects. Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd
* Fixing spell correctonSunny Goyal2014-07-291-2/+2
| | | | Change-Id: I29d980d8073680fafa8fcc01bc2ec81258919da2
* Merge "Merging motorola's patch to fix ClassCastException" into ub-now-masterSunny Goyal2014-07-221-3/+3
|\
| * Merging motorola's patch to fix ClassCastExceptionSunny Goyal2014-07-221-3/+3
| | | | | | | | | | issue: 15518616 Change-Id: I7d707f12cb20be9aa24d7ea86051f3712b3534af
* | Adding app widget restore support in Launcher3 for android LSunny Goyal2014-07-211-21/+55
|/ | | | | | | | | | | When the app is restored, it displays placeholders for all pending widgets. These placeholders can be moved and removed similar to a widget (size is fixed to what defined in backup). Once the system notifies the launcher of the new widget ids, the place holders are replaced with actual widgets. issue: 10779035 Change-Id: I68cbe4da01e9ca2978cb4471a7c645d2aa592055
* Merging Motorola's patch to disable apps when is safe mode.Sunny Goyal2014-07-181-0/+2
| | | | | | issue: 16044192 Change-Id: I10069dcdf459ecc71361271e883eabb743d77822
* Adding a circular progress bar for preloader iconsSunny Goyal2014-07-161-0/+1
| | | | Change-Id: I1b5ba61c01a16a8cb5d3f9e31f827f8c99a1ffc9
* Showing icons for apps on sdcard which are not available during system boot.Sunny Goyal2014-07-161-28/+97
| | | | | | issue 15852084 Change-Id: I1e6f59a413581ae3af4219ab32cb5af3d726d382
* Revert "Revert Cls stopping now-master running on googlefood"Kenny Guy2014-06-301-6/+13
| | | | | | | | | This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb. Conflicts: src/com/android/launcher3/BubbleTextView.java Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
* Offer to delete broken promise icons.Chris Wren2014-06-271-0/+7
| | | | | | | | | Track state of promise in the info, not the view. Fix bugs around moving promises to folders. Fix bugs around filterign and removing promises. Bug: 12764789 Change-Id: If5e8b6d315e463154b5bafe8aef7ef4f9889bb95
* Fix issue where sometimes duplicate icons are added on homescreen whenSunny Goyal2014-06-271-2/+19
| | | | | | | | | | | installing a package Shortcuts placed by the user have no package in their intent. Ensure that this is accounted for when searching for duplicates. issue: 12888844 Change-Id: I2fb8b7c2b8f7cb74926904bf49a96aeb59a5a9f8
* Revert Cls stopping now-master running on googlefoodKenny Guy2014-06-241-13/+6
| | | | | | | | | | This reverts commits 01453e855fa87ee19f61223b2b1a6965071ee95a. and 242bbe1b72e4978dde8a662d164cd186305e14a7. "Add content description to bagded icons." "Remove reflection now we are building against L" Bug: 15833449 Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
* Add content description to bagded icons.Kenny Guy2014-06-231-0/+7
| | | | | | | | | Enabled accesibility so that icons badged by the managed profile have a content description that is different to the non-bagdged version. Bug: 15106236 Change-Id: Id483273173d9539916eebd59111d179087526be3
* Remove reflection now we are building against LKenny Guy2014-06-231-6/+6
| | | | | | | Remove reflection and update changed renamed L APIs now that branch has L sdk. Change-Id: I223c6528487110eb328e2e229bbcbefb701e0c20
* Fix issue where shortcuts were still being added even if corresponding app ↵Adam Cohen2014-05-201-0/+9
| | | | | | | | is uninstalled issue 14410162 Change-Id: I7857aace069c4eb4c1ee504088f4526d61e1f30e