summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3
Commit message (Collapse)AuthorAgeFilesLines
* Stylus support: creating and setting listeners for stylus button pressMady Mellor2015-06-025-1/+134
| | | | | | | | | | | | | | | | | | This updates almost(*) all locations that use a long press listener to also set a custom touch listener that recognizes the stylus button press action. The stylus button press action is: when a stylus touches a view while the primary stylus button is pressed which may occur on a DOWN or MOVE event. *The location this is *not* enabled for is: Longpress to enter "overview" mode -- this isn't really a selection or drag n drop action; it is also easy to accidentally do this while using the stylus gesture to drag n drop items which is not an ideal interaction. Also not set for the "cling" that demonstrates this. Bug: 20430722 Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca
* Merge "Revert "Avoid merging sections across scripts."" into ↵Winson Chung2015-06-011-21/+6
|\ | | | | | | ub-launcher3-burnaby
| * Revert "Avoid merging sections across scripts."Winson Chung2015-06-011-21/+6
| | | | | | | | | | | | This reverts commit 595395d84f0507a1c5c163ad4722fa4345376079. Change-Id: I44913141f6cb3af29b4509d6b7c317247d1f24c9
* | Merge "Avoid merging sections across scripts." into ub-launcher3-burnabyWinson Chung2015-06-011-6/+21
|\|
| * Avoid merging sections across scripts.Winson Chung2015-06-011-6/+21
| | | | | | | | | | Bug: 20222023 Change-Id: I6f6577112845fec14ae2e9c6e88ff3569bd2f1af
* | Null check in accessibility delegateSunny Goyal2015-06-011-1/+5
| | | | | | | | | | bug: 21338696 Change-Id: I00d67e53e03e33b26a8eadb669b60fec47553f26
* | Merge "Start adding unit tests for the invariant device profile / Refactor" ↵Hyunyoung Song2015-05-291-129/+119
|\ \ | | | | | | | | | into ub-launcher3-burnaby
| * | Start adding unit tests for the invariant device profile / RefactorHyunyoung Song2015-05-281-129/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - removed redundant code to sort the device profiles - removed DeviceProfileQuery class - Added a helper method inside the test to easily generate interpolation graph looks like: https://docs.google.com/a/google.com/spreadsheets/d/1a1fdemrOqIDixiql77h0anWzUD3GlYfGsbP2FfIhyPM/edit?usp=sharing Change-Id: Ia4c54a8d59a049c418c08d1b766f07ac6e1d0944
* | | Merge "Fixing screen jumps when performing DnD in rtl mode" into ↵Sunny Goyal2015-05-291-0/+1
|\ \ \ | |_|/ |/| | | | | ub-launcher3-burnaby
| * | Fixing screen jumps when performing DnD in rtl modeSunny Goyal2015-05-291-0/+1
| | | | | | | | | | | | | | | Bug: 21445825 Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d
* | | Move fast scrolling logic to BaseRecyclerViewHyunyoung Song2015-05-295-307/+395
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This change has no effect on actual functionality but to make it easier for widget tray to inherit the goodness of the 1) fast scroller functionality 2) unify the scroll look and feel with the all apps view b/21375339 Change-Id: Ib859b1c3352c0b69f16549ded8f20eb82cf58ba8
* | | Merge "Ensuring that each CacheEntry has a default title and content ↵Winson Chung2015-05-281-3/+9
|\ \ \ | | | | | | | | | | | | description." into ub-launcher3-burnaby
| * | | Ensuring that each CacheEntry has a default title and content description.Winson Chung2015-05-281-5/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | - Also defer adding entry to cache until we know that it has correctly loaded Bug: 21446070 Change-Id: Ia7aae65ecdc5d9d7741f75d3fb6e7b85daeafeff
* | | Merge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED ↵Vadim Tryshev2015-05-281-1/+6
|\ \ \ | | | | | | | | | | | | event." into ub-launcher3-burnaby
| * | | Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event.Vadim Tryshev2015-05-281-1/+6
| | | | | | | | | | | | | | | | Change-Id: Idec0e333a0d3c3a0c232d3e2240f18174e0ea88c
* | | | Merge "Fixing non-scrolling of workspace view after opening/closing AllApps ↵Vadim Tryshev2015-05-282-9/+12
|\ \ \ \ | | | | | | | | | | | | | | | vew. The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView." into ub-launcher3-burnaby
| * | | | Fixing non-scrolling of workspace view after opening/closing AllApps vew.Vadim Tryshev2015-05-282-9/+12
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView. However, this would make the PagesView accessibility-focusable, which is undesirable. It becomes focusable because it supports long clicks in "normal" mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is fetched NOT via accessibility long-click), I just disabled accessibility long-clickability, which made PageView non-focusable, and it started to behave correctly. Bug: 21281859 Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d
* | | / Fixing page background not displayed when dragging from all appsSunny Goyal2015-05-276-76/+52
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | > Adding empty page synchronously, instead of waiting for a frame > Changing launcher state from widgets screen in the same frame, similar to all apps > Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag > Using first page to get page bounds in drag layer, as last page may not have been measured Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
* | | Merge "Removing file IO used for checking configuration change" into ↵Sunny Goyal2015-05-283-119/+1
|\ \ \ | | | | | | | | | | | | ub-launcher3-burnaby
| * | | Removing file IO used for checking configuration changeSunny Goyal2015-05-263-119/+1
| | |/ | |/| | | | | | | | | | | | | | | | > This check was used for flushing the cache, but since the cache is backed by a DB, this has no effect as same icons are loaded again Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a
* | | Merge "Make sure all transition components run on the same thread" into ↵Adam Cohen2015-05-275-17/+127
|\ \ \ | | | | | | | | | | | | ub-launcher3-burnaby
| * | | Make sure all transition components run on the same threadAdam Cohen2015-05-275-17/+127
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | -> The framework circular reveal transition runs on the render thread which can cause problems when mixed in an AnimatorSet with transitions that don't run on the render thread -> See issue 17556455 issue 21445293 Change-Id: Ie19c184c55060651e817d426ec83049b06af56ba
* | | Fixing build breakageSunny Goyal2015-05-271-1/+1
| | | | | | | | | | | | Change-Id: I2d8ac9a92d2da3d6b0f52ff8a6e3683b05663aec
* | | Removing SmoothPagedView as all its methods are disabledSunny Goyal2015-05-274-225/+16
|/ / | | | | | | Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6
* | Merge "Introduce LauncherSearchCallback to handle search overlay status." ↵Jun Mukai2015-05-273-0/+53
|\ \ | | | | | | | | | into ub-launcher3-burnaby
| * | Introduce LauncherSearchCallback to handle search overlay status.Jun Mukai2015-05-123-0/+53
| | | | | | | | | | | | | | | Bug: 20011047 Change-Id: I93cab4e0614b9658b4b657dd98dca68d42580e63
* | | Fixing workspace scrim not being drawnSunny Goyal2015-05-261-2/+2
| |/ |/| | | | | Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71
* | Merge "Fix widget tray crash on screen rotation introduced by ag/694693" ↵Hyunyoung Song2015-05-222-13/+29
|\ \ | | | | | | | | | into ub-launcher3-burnaby
| * | Fix widget tray crash on screen rotation introduced byHyunyoung Song2015-05-222-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | ag/694693 b/21402209 Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d
* | | Moving all apps code into sub package.Winson Chung2015-05-2215-137/+203
| | | | | | | | | | | | | | | | | | | | | - Renaming resources, dimens, etc to be more consistent - Removing old AppsCustomize resources and other unused code Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
* | | Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-2214-368/+172
| | | | | | | | | | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* | | Animating workspace active background changeSunny Goyal2015-05-212-47/+30
| | | | | | | | | | | | | | | | | | > Removing workspace_overscroll_drawable_padding which is always 0 Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
* | | Refactoring DeviceProfileAdam Cohen2015-05-2138-709/+646
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* | | Merge "Tweaking method name." into ub-launcher3-burnabyWinson Chung2015-05-212-3/+3
|\ \ \
| * | | Tweaking method name.Winson Chung2015-05-212-3/+3
| | | | | | | | | | | | | | | | Change-Id: I2f4f9dc58c8148059914a106526995e80a82376f
* | | | Merge "Fixing crash in previous CL." into ub-launcher3-burnabyWinson Chung2015-05-212-4/+10
|\| | |
| * | | Fixing crash in previous CL.Winson Chung2015-05-212-4/+10
| | | | | | | | | | | | - Shouldn't be referencing mApps before it is set.
* | | | Merge "Icons are not updated to TYPE_APPLICATION during restore" into ↵Sunny Goyal2015-05-216-37/+49
|\ \ \ \ | |/ / / |/| | | | | | | ub-launcher3-burnaby
| * | | Icons are not updated to TYPE_APPLICATION during restoreSunny Goyal2015-05-216-37/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Use low res only for app shortcuts > Running icon migration after restore > Running icon migration again for all users > Deduping shortcuts added from widget tray Bug: 20945600 Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
* | | | Merge "Preventing overdraw. Drawing background directly at the window, ↵Sunny Goyal2015-05-211-6/+20
|\ \ \ \ | | | | | | | | | | | | | | | instead of the rootview." into ub-launcher3-burnaby
| * | | | Preventing overdraw. Drawing background directly at the window, instead ofSunny Goyal2015-05-211-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the rootview. Change-Id: Ie974752e739d9acd1fbd765809c671f82f462644
* | | | | Cleaning up some app model code.Winson Chung2015-05-212-96/+102
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Preventing extra sorting when adding/updating apps - Preventing extra logic when filtering apps - Fixing overlapping prediction bar when all predictions are removed - Fixing crash when retrieving section names for AppInfos whose titles have been updated, but updateApps has not yet been called. Change-Id: I1da468b0fd5c5cc404b6a5e6146a268fefeca267
* | | | Merge "Breaking icon update task so that it doesn't block worker thread" ↵Sunny Goyal2015-05-212-87/+120
|\ \ \ \ | | | | | | | | | | | | | | | into ub-launcher3-burnaby
| * | | | Breaking icon update task so that it doesn't block worker threadSunny Goyal2015-05-212-87/+120
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20945600 Change-Id: Iaf516577898b51ad6e8a813d7f018ecad969c100
* | | | | Merge "Load PackageItemInfo in background thread to prevent ANR" into ↵Hyunyoung Song2015-05-2110-58/+62
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | ub-launcher3-burnaby
| * | | | Load PackageItemInfo in background thread to prevent ANRHyunyoung Song2015-05-2110-58/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Decoupled widget model from widget view, and placed the creation to LauncherModel. - As a result packagemanager operation, iconcache retrieval is all done inside LauncherModel on background thread b/21311085 b/21325319 Change-Id: I294698527db58b89f3da558090a367530c058776
* | | | | Merge "Using color filter when animating the drop target instead to ↵Sunny Goyal2015-05-215-19/+56
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | TransitionDrawable" into ub-launcher3-burnaby
| * | | | | Using color filter when animating the drop target instead to TransitionDrawableSunny Goyal2015-05-215-19/+56
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | > No more flickering when crossfading between two bitmaps in small duration > Allows us to control the color directly without depending on the assets Change-Id: Ie7ed8bb94baf560e9b939cca624ed1bad457732c
* / | | | Do not trim folder titleSunny Goyal2015-05-212-3/+5
|/ / / / | | | | | | | | | | | | | | | | Bug: 21297281 Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86
* | | | Fixing issue where the prediction bar apps are not focused.Winson Chung2015-05-213-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | - Also fixes issue where all apps is not accessible by keyboard when there are no other apps in the hotseat. Bug: 21334471