summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* Don't clobber widgets with the same component - DO NOT MERGERobin Lee2015-03-191-1/+2
| | | | | | | | | 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
* 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
* | Ensure that layers are properly removed after animationAdam Cohen2015-02-131-12/+23
|/ | | | | | Bug 19243980 Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
* 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
* Adding dampened snap back overscroll to Workspace and AppsCustomizePagedViewAdam Cohen2014-08-181-17/+18
| | | | | | issue 15475254 Change-Id: I5eb9fc480167faf4be16bd17bf18e2d103f40f47
* Further refinement of all apps / widgets transitionAdam Cohen2014-08-131-3/+0
| | | | Change-Id: Id107a9aff74f014c07f8cbea6e74951a02dbddab
* Updating the ui for widget restore flowSunny Goyal2014-08-121-8/+79
| | | | | | | | | | | | | | > 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
* Merge "Updating the virtual preloader UX." into ub-now-porkchopSunny Goyal2014-08-111-24/+30
|\
| * Updating the virtual preloader UX.Sunny Goyal2014-08-111-24/+30
| | | | | | | | | | | | | | | | | | | | | | | | > No click feedback when in preloader mode > No preloader UI when drawn in drag layer > The preloader consists of a background 9 patch image and a circular progress is drawn in the content region of the background. > The preloader is drawn in a slightly larget area than the actual bounds to make the circular progress more prominent compared to the icon. issue: 15835307 Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
* | Merge "Update code so it compiles on google3" into ub-now-porkchopSameer Padala2014-08-111-1/+1
|\ \ | |/ |/|
| * Update code so it compiles on google3Sameer Padala2014-08-081-1/+1
| | | | | | | | Change-Id: I76c6a5264585c8ad4ded22501d2e2ee1672308c3
* | Merge "Updating the widget tray" into ub-now-porkchopAdam Cohen2014-08-091-9/+1
|\ \
| * | Updating the widget trayAdam Cohen2014-08-111-9/+1
| |/ | | | | | | | | | | | | | | -> adding dark panel / associated visual updates -> cleaning up the sizing / padding / to match all apps -> fixing a couple things from previous CL -> (removed Context#getDrawable() calls, L-only) Change-Id: Ia65a6eb704b35f74e7305be9334c27971b22235a
* | Merge "Revert "Updating the widget tray"" into ub-now-porkchopMark Brophy2014-08-081-1/+9
|\ \
| * | Revert "Updating the widget tray"Mark Brophy2014-08-111-1/+9
| | | | | | | | | | | | | | | | | | This reverts commit b172c13dcced9226c935991ef9fe85cc920ce811. Change-Id: I375fb105e3cf6fa2c1548306cf6a109d612077de
* | | Merge "Adding support to restore widgets even for jelly beans." into ↵Sunny Goyal2014-08-101-28/+38
|\ \ \ | |/ / |/| | | | | ub-now-porkchop
| * | Adding support to restore widgets even for jelly beans.Sunny Goyal2014-08-081-28/+38
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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
* / Updating the widget trayAdam Cohen2014-08-101-9/+1
|/ | | | | | | | -> adding dark panel / associated visual updates -> cleaning up the sizing / padding / to match all apps -> fixing a couple things from previous CL Change-Id: I4f663af7022337d687124ef25a22bac03d9d6af9
* Implementing a package install progress listener for LSunny Goyal2014-08-011-17/+24
| | | | | | issue: 15835307 Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
* Modify code so it compiles on google3Sameer Padala2014-07-291-2/+2
| | | | | | The diamond operator isn't supported on google3 Android projects. Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd