summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* Lazy loading high res iconsSunny Goyal2015-03-171-1/+2
| | | | | | | > Loading low-res icons for icons which are not visible on the homescreen. Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
* Initial changes to break out AllApps into its own view.Winson Chung2015-03-101-27/+40
| | | | | | | | - Moves launcher state-transition code into its own class - Moves all-apps related code into a separate view/set of classes - Implements a basic list view for all apps Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
* Merge "Ensuring setQsbSearchBar is called whenever the QSB is created" into ↵Sunny Goyal2015-03-101-1/+1
|\ | | | | | | ub-launcher3-burnaby
| * Ensuring setQsbSearchBar is called whenever the QSB is createdSunny Goyal2015-03-041-1/+1
| | | | | | | | | | | | | | | | | | > On launcher3 when the QSB is created for the first time after a widget drop, it is not set in searchDropTarget and as a result the "Remove" and "App Info" drop targets are not visible until Launcher3 restarts and rebinds QSB Change-Id: I599a9a18cc5d46af790b3145dae2eb385b32b20e
* | Merge "Enabling accessible drag and drop" into ub-launcher3-burnabyAdam Cohen2015-03-091-13/+50
|\ \
| * | Enabling accessible drag and dropAdam Cohen2015-03-091-13/+50
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> Using the context menu, and a new two stage system, this allows users to curate icons and widgets on the workspace -> Move icons / widgets to any empty cell on any existing screen, or create a new screen (appended to the right, as with regular drag and drop) -> Move icons into existing folders -> Create folders by moving an icon onto another icon -> Also added confirmations for these and some existing accessibility actions Limitations: -> Currently, no support for drag and drop in folders -> Considering moving the drag view so it doesn't occlude any content (in particular, when user changes pages) -> In this mode, accessibility framework seems to have problems with the next / prev operations Bug: 18482913 Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
* | Fixing icon disappearing on dropping to workspaceSunny Goyal2015-03-051-1/+1
| | | | | | | | | | | | > It was created in ag/645900 Change-Id: I31ca5bf9763292517fa5ee3ccd867897bca45bad
* | Fixing wrong check to determine the drag sourceSunny Goyal2015-03-021-12/+7
|/ | | | | | > target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
* Updating IconCache to maintain a persistent of iconsSunny Goyal2015-02-261-1/+1
| | | | | | | | | | > IconDB maintains a DB of icons keyed on ComponentName + User > During loader, icons & labels are loaded first from the DB, and if the entry doesn't exist, loaded using packageManager > After the loader completes, IconDB updates any entry which might have changed, while the launcher was dead. Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
* Refactoring common methodsSunny Goyal2015-02-261-39/+3
| | | | Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
* [key event focus handling] (1)hotseat <-> icon now symmetric, (2)support DEL ↵Hyunyoung Song2015-02-241-0/+3
| | | | | | | | | | | | | | | | | | | keycode TL;DR; (1) Key event navigation from and to the hotseat and icons in the workspace is now symmetric. Since there is one more icon in the hotseat, only left N-1 icon navigation was symmetric. (2) KeyEvent.KEYCODE_DEL and KeyEvent.KEYCODE_FORWARD_DEL can now delete icons from the workspace. The focus move to the previous icon where the focus traveled from. Also contains minor styling and indexing issues. Bug: 15408321 Bug: 19381790 Change-Id: I16cbcb2693e92eebb830997d01c0bf674073dd51
* am fce720f3: Merge "Fixing crash when dragging and dropping a restored ↵Sunny Goyal2015-02-171-3/+2
|\ | | | | | | | | | | | | widget." into ub-launcher3-almonte * commit 'fce720f39adcf8a35b93978c36ab0e8833a74e3e': Fixing crash when dragging and dropping a restored widget.
| * Merge "Fixing crash when dragging and dropping a restored widget." into ↵Sunny Goyal2015-02-171-3/+2
| |\ | | | | | | | | | ub-launcher3-almonte
| | * Fixing crash when dragging and dropping a restored widget.Sunny Goyal2015-02-171-3/+2
| | | | | | | | | | | | | | | | | | | | | > When the widget is in pending state, AppWidgetProviderInfo is not available Bug: 19364311 Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
* | | am 80e6beb4: Ensure that layers are properly removed after animationAdam Cohen2015-02-141-12/+23
|\| | | | | | | | | | | | | | * commit '80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf': Ensure that layers are properly removed after animation
| * | Ensure that layers are properly removed after animationAdam Cohen2015-02-131-12/+23
| |/ | | | | | | | | | | Bug 19243980 Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
* | Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-masterSunny Goyal2015-02-121-83/+0
|\ \
| * | Removing code for the unused 'upgrade path'Sunny Goyal2015-02-111-83/+0
| | | | | | | | | | | | Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
* | | Remove meaningless bug id from from addDumpLog and Log.d methodsHyunyoung Song2015-02-111-25/+0
|/ / | | | | | | | | | | | | b/11683562 b/6557954 Change-Id: Icd0e237ebb09ac868928328f45a3b30cf19a20df
* / Removing support library dependencySunny Goyal2015-01-201-4/+3
|/ | | | | | > Removed FolderAutoScrollHelper as folders are currently not scrollable Change-Id: I261f43a665b742697e3224e1e9852ccc526badcd
* Adding accessibility controlsSunny Goyal2015-01-161-45/+16
| | | | | | | | | | | > 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
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-9/+17
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Prevent multiple workspace state animators from being startedAdam Cohen2014-11-181-0/+14
| | | | | | | | | | | | -> Probably an issue with the way we're wrapping ViewPropertyAnimator which can lead to us acting like it's valid to have multiple instances of a VPA. In reality I think this is very problematic. -> For now, we can just make sure the previous animation is canceled if it hasn't yet completed. Bug 18428886 Change-Id: I097eec08ec68ed098e68866fb5eda72734c51b00
* Adding a few null checks.Sunny Goyal2014-11-141-2/+4
| | | | | | | | | | 1) During migration, if launcher2 has deleted user data, migration oes not happen 2) If Launcher3 does not has bind widget permission, QSB would be null. Bug: 18388507 Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
* Using the default search widget in Launcher3Sunny Goyal2014-11-111-13/+0
| | | | | | | | | | > Removing all logic related to search and voice overlays from Launcher3 > Using the widget provided by global search provider on the homescreen > Removing VoiceButtonProxy, as it is not being used anymore Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
* Fix edge case where LauncherOverlay scroll woudln't be resetAdam Cohen2014-10-241-2/+11
| | | | | | | | -> If the Workspace has a single page and the user goes from overscrolling in one direction, and then the other, the LauncherOverlay scroll wouldn't be set to 0 until the scrolling settled Change-Id: I29ee9abdfa023ae3599d1590cdaebf457e2220fa
* Merge "First pass of the Launcher Overlay interface / impl" into ub-now-queensAdam Cohen2014-10-231-20/+71
|\
| * First pass of the Launcher Overlay interface / implAdam Cohen2014-10-221-20/+71
| | | | | | | | | | | | | | -> Added simple reference launcher extension -> Make launcher able to handle a null qsb Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
* | Merge "Updating ItemInfo objects in the worker thread" into ub-now-queensSunny Goyal2014-10-211-171/+22
|\ \ | |/ |/|
| * Updating ItemInfo objects in the worker threadSunny Goyal2014-10-141-171/+22
| | | | | | | | | | | | | | | | | | | | | | > 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
* | Use LauncherCallbacks model instead of method overridesAdam Cohen2014-10-151-1/+0
|/ | | | | | | | | -> When extending the Launcher Activity, instead of overriding public and protected methods, create a proper interface -> This helps define the interface when extending Launcher more formally and more clearly Change-Id: Ib38e8a376b2242d4078bf6856bb145f5b5f0da80
* Keeping icons in disabled state when SD-card is unmountedSunny Goyal2014-10-081-2/+35
| | | | | | | | | | > 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-0/+22
| | | | | Bug: 17398260 Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
* Merge "Updating promise icon's bitmap and label when onBadgingChanged is ↵Sunny Goyal2014-09-191-0/+32
|\ | | | | | | received" into ub-now-porkchop
| * Updating promise icon's bitmap and label when onBadgingChanged is receivedSunny Goyal2014-09-191-0/+32
| | | | | | | | | | Bug: 17583799 Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
* | Fix NPE in WorkspaceAdam Cohen2014-09-171-1/+1
|/ | | | | Bug: 17503479 Change-Id: Ib20dfd67c5a755cd4b684163bb538a1bf77fa6ca
* Updating shourcuts only when the corresponding user also matches the AppInfoSunny Goyal2014-09-121-15/+28
| | | | | issue: 17480447 Change-Id: I0afbd80e760b7b73b84e483be325b2e905d65a00
* Merge "Handling label and icon from SessionInfo." into ub-now-porkchopSunny Goyal2014-09-051-31/+98
|\
| * Handling label and icon from SessionInfo.Sunny Goyal2014-09-041-31/+98
| | | | | | | | | | | | | | | | | | > 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
* | Merge "Updating content of page description frequently." into ub-now-porkchopSunny Goyal2014-09-041-3/+0
|\ \ | |/ |/|
| * Updating content of page description frequently.Sunny Goyal2014-08-281-3/+0
| | | | | | | | | | | | | | | | > Removing unused search icon page indicator issue: 17256565 Change-Id: I95158cf68f98b2af847cefb4d126468b908301e2
* | All apps transition workAdam Cohen2014-08-291-25/+22
|/ | | | | | | | | | | | | -> Fix icons popping in -> Fix issue 17259204 -> posting animation start and buildLayer to allow first frame to be ready. This becomes necessary with RevealAnimator on the render thread, since it can't use FirstFrameAnimatorHelper any longer. -> adding a bit better transition for K, issue 17252683 -> updating a few assets Change-Id: I0b193b4b3b511492a2fad6230cd91e3f0de634f0
* Improving restored widget behaviorSunny Goyal2014-08-271-10/+5
| | | | | | | | | | | > 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
* Updating clings, removing ununsed clingsSunny Goyal2014-08-251-14/+0
| | | | | | issue: 16127412 Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
* Changing hotseat keyboard controlsSunny Goyal2014-08-201-1/+1
| | | | | | | | | | > Left and right keys don not navigate to next/prev page > Down arrow on apps apps last row, do not take the focus to the end > Nagivation sounds when focus changes issue: 16352221 Change-Id: I5982f22dc80c408673092f8fa8ca1b2fc6381635
* Merge "Updating the icon click feedback" into ub-now-porkchopSunny Goyal2014-08-201-56/+40
|\
| * Updating the icon click feedbackSunny Goyal2014-08-191-56/+40
| | | | | | | | | | | | | | | | | | > Using BubbleTextView everywhere, removed PagedIconView > There is a brightness feedback on touch and shadow feedback on click, until app launches issue: 16878374 Change-Id: I3dc1149a123c8a75feca6210948398bf2187f1f2
* | Merge "Ignore generic motion events if custom content doesn't allow ↵Jan-Willem Maarse2014-08-201-0/+11
|\ \ | | | | | | | | | scrolling" into ub-now-porkchop
| * | Ignore generic motion events if custom content doesn't allow scrollingJan-Willem Maarse2014-08-191-0/+11
| |/ | | | | | | | | | | | | | | If the custom content screen is selected and it doesn't allow scrolling, the workspace should ignore generic motion events instead of trying to scroll to the next page. Change-Id: Iee9c7e02bf7c78648b574a01c83dcb76c0b62855
* / Unify next / prev page hints for drag and drop across devicesAdam Cohen2014-08-191-13/+15
|/ | | | | | | | -> Eliminate the white bgs on tablets during drag (issue 15880213) -> Add stateful (active and rest) next / prev page hints (issue 15937059) -> Fix recent regression which allowed overscroll in custom content area Change-Id: I1198dc88ca8570cb9e1afd3ca939be06a8dea92e