summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
Commit message (Collapse)AuthorAgeFilesLines
* Launcher: show unread notify info number at APP icon on Launcherhuiwan2014-11-211-0/+65
| | | | | | | | | | Show APP's unread info number at Launcher: - Register a receiver to receive the UNREAD_CHANGED event to update the APP icon - When the unread number changed, recreate the icon bitmap of icon cache Change-Id: I7dd0fb2c29959f1584682965fb1476e3f3c77739
* Customizeable Dynamic Grid:Raj Yengisetty2014-11-191-0/+2
| | | | | | | | | | | | | | | | | | | - Presets - Comfortable (+0) - Cozy (+1) - Condensed (+2) - Custom option with min, max Reordering items in the settings pane for better organization Modifying Settings Layout for readability Conflicts: res/layout/settings_pane_list_item.xml res/values/cm_strings.xml src/com/android/launcher3/DeviceProfile.java src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java Change-Id: I5c926b6ca4b2ed73c263ef34eeb368caeb7af9b5
* Protected App [3/3] Trebuchet - Protected Apps - Build fixed to work with ↵Raj Yengisetty2014-11-191-0/+107
| | | | | | | | | | | | | | | | | LOCAL_SDK_VERSION - Fixed adding components to protected folders and adding protected folders to other folders - Fixed issues with EditText for FolderName - Adding support for Settings hooks - Uses Setting's LockPattern for Protected Apps - Add Read from Settings Secure DB (DO NOT WRITE!) - Protecting a folder updates Launcher without restart - Batch send component visibility Conflicts: AndroidManifest.xml res/values/preferences_defaults.xml src/com/android/launcher3/AppsCustomizePagedView.java src/com/android/launcher3/Folder.java src/com/android/launcher3/FolderIcon.java src/com/android/launcher3/Launcher.java src/com/android/launcher3/LauncherModel.java src/com/android/launcher3/LauncherProvider.java src/com/android/launcher3/OverviewSettingsPanel.java Change-Id: I41c295e7f2c9abc9b2e77e6e3d39b7ca60d47139
* PagedView: Transition EffectsNebojsa Cvetkovic2014-11-191-0/+16
| | | | | | | | | | | | | | | | Conflicts: res/layout/overview_panel.xml res/values/cm_arrays.xml res/values/cm_strings.xml res/values/dimens.xml res/values/preferences_defaults.xml src/com/android/launcher3/AppsCustomizePagedView.java src/com/android/launcher3/Launcher.java src/com/android/launcher3/PagedView.java src/com/android/launcher3/Workspace.java src/com/android/launcher3/settings/SettingsProvider.java Change-Id: Ib134705952877165c334181548d577b3dceece68
* DO NOT MERGESunny Goyal2014-10-141-0/+59
| | | | | | | Rechecking unrestored items when launcher gets created Bug: 17941096 Change-Id: Ic54464a9c64442d6784cda44ef22fa3d08e22f1f
* 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
* Fix issue where always trying to migrateJason Monk2014-05-161-7/+10
| | | | | | | | | | Rather than check if the ContentProviderClient is null (which fails in when using the Redirector), check the PackageManager directly for the authority we are looking for. Bug: 14466459 Change-Id: I7420352a15dcea5037196670f18705e7a34f0672
* Removing antiquated migration path logicAdam Cohen2014-05-161-3/+12
| | | | | | -> also added some extra debugging for issue 14466459 Change-Id: I1ac9352c52c15d3e37f945cffabbca49343d2b8f
* check for long and short component names.Chris Wren2014-05-121-2/+4
| | | | | Bug: 14650346 Change-Id: Ic2195a4f60b63f8ec85c42284e0fd58d6f473a9f
* Fix bug with user of shortcut not being remembered over restart.Kenny Guy2014-05-081-2/+2
| | | | | | | | | | | Intent extra was being set as int rather than long so being missed. Also use LauncherApps if neccessary in case where launching without launch animation. Unregister for package notifications when terminating. Bug: 14636181 Change-Id: I1575f6eed806446782092dffe8c01afe7b6507fe
* Watch for profile events and reloadAmith Yamasani2014-05-021-1/+1
| | | | | | | | Reload the workspace and all-apps list when a managed profile is added or removed. Bug: 14484845 Change-Id: I69210c22e568f2a561266ef2846ddf8f6d659070
* Launcher3 multi-profile supportKenny Guy2014-04-301-226/+242
| | | | | | | | | | | | | | | | | | | | | Use LauncherApps API and badging APIs instead of PackageManager. With compatability layer that uses PackageManager pre L. Adds support to show apps from current user and any managed profiles. Background: Managed profiles are user sandboxes that are visible from the primary user and can be launched as if they are a part of this user. A launcher should now be capable of listing apps from this user as well as related profiles of this user. Launching of activities is now via the LauncherApps interface, to allow for cross-profile app launching. Only activities with category LAUNCHER can be added as a shortcut on the workspace for a managed profile. Widgets and non-application shortcuts are only supported for the current profile. Widgets from the managed profile are not available. Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
* Merge "Add synchronization to DeferredBindRunnables" into ub-now-novaJason Monk2014-04-231-8/+25
|\
| * Add synchronization to DeferredBindRunnablesJason Monk2014-04-221-8/+25
| | | | | | | | | | | | | | | | | | | | Seems that on occasion the list is being iterated on while being modified. To fix this added synchronization to all modifications to the list as well as iterating on a copy of the list to cut down on time holding the lock. Bug: 12885709 Change-Id: I4287bdedbeb8e438b49c1f79b44819a752c28a69
* | am 76ac344c: Merge "Allow the old launcher content URI to be overrided" into ↵Adam Cohen2014-04-181-1/+1
|\ \ | | | | | | | | | | | | | | | | | | ub-now-mister-ugly * commit '76ac344cb61a74267c04249c9e9feec41a82c504': Allow the old launcher content URI to be overrided
| * \ Merge "Allow the old launcher content URI to be overrided" into ↵Adam Cohen2014-04-171-1/+1
| |\ \ | | |/ | |/| | | | ub-now-mister-ugly
| | * Allow the old launcher content URI to be overridedJason Monk2014-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the URI used to import favorites from launcher2 to be loaded from a string resource. This allows it to be overridden. This will enable permissions fix for GoogleSearch. Bug: 12058200 Change-Id: I31243fe89f545c9771d5cceffe1c9e7668a42bc5
* | | additional debug logs to track welcome back behavior.Chris Wren2014-04-161-2/+3
|/ / | | | | | | | | Bug: 13568891 Change-Id: I359202ce59b3444e46331485ea22f542ae908e36
* / Fix missing stack trace on checkItemInfoLocked callJason Monk2014-03-201-1/+2
|/ | | | | | | | | | Just put this change into Launcher2, now adding to Launcher3 The call to checkItemInfoLocked from addItemToDatabase was missing a stack trace so that if the check failed, the stack trace did not contain what triggered the add. Change-Id: Ia2e2aae20b16d4adadfe1da53b49e93073fab55c
* update promise icon statusChris Wren2014-03-111-1/+20
| | | | | | | also fix a crash in LauncherModel.DEBUG_LOADERS Bug: 10778992 Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
* Properly releasing ContentProviderClient after LauncherModel check.Winson Chung2014-03-061-2/+6
| | | | Change-Id: I0823ada46661b5ba0c36a0bb9f792969a1d04561
* use restored icon for restored app shortcutsChris Wren2014-02-141-3/+9
| | | | | Bug: 10778992 Change-Id: Ie430a6587d49dc0d78b87b81582c0cef7c281017