summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Hotseat.java
Commit message (Collapse)AuthorAgeFilesLines
* Enable touches on hotseat areaSamuel Fufa2019-09-191-2/+1
| | | | | | Test: Manual Bug:130294785 Change-Id: Ib3ace6633aae1ad2acc71520afd7bfdc96ffb285
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-2/+10
| | | | | | | | Workspace and hotseat are drawn in rotated UI giving the impression that the device is in Portrait, even though it is in landscape Bug: 131360075 Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
* Do a full touch dispach when proxying touchSunny Goyal2019-04-091-0/+7
| | | | | | | > Workspace can no longer be scrolled when swipin on hotseat Bug: 130027168 Change-Id: Ie4621e5b7de8d7248227b25fb065249d0c252090
* Making CellLayout inflatable without LauncherActivtiySunny Goyal2018-11-201-16/+3
| | | | | | | | | This will allow creating cellLayout with a different device profile or a different activtiy which can be used when displaying multiple activities in multi-display or generating a preview for changing display properties. Change-Id: I386731d95e33c48bdef270ce9c0d3e9feefb6262
* Removing separate hotseat widget, instead using a QSB acroll all UI.Sunny Goyal2018-11-051-26/+11
| | | | | | | The QSB is responsible for updating its UI according to various states. Bug: 109828640 Change-Id: Ic8cbf3d404d5870de0f6b8fe25a332b8d21bae20
* Add StatsLog*Manager for logging.Hyunyoung Song2018-11-051-1/+1
| | | | | | | | | Bug: 113043444 Verification: (19) is our event classifier number 11-05 11:24:28.188 932 994 I statsd : { 1541445868000000000 766293363001 (19)0x10000->1[I] 0x20000->0[I] 0x30000->0[I] 0x40000->[S] 0x50000->1[I] } Change-Id: I75403837f9fa8e51efa012fb708bce7efc9c4488
* Retiring some feature flagsSunny Goyal2018-07-101-47/+0
| | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* Add padding between hotseat and insets in multiwindow landscapeTony Wickham2018-06-131-2/+2
| | | | | | | | | | | Right now there's almost no room between the hotseat icons and the nav bar in this mode, and it looks kind of bad. It also causes b/109946631 which is fixed by this change. Also fix placement of popup in RTL landscape (was incorrectly inset) Bug: 109946631 Change-Id: I324485da0048b907776b16b719b631c5314e5696
* Remove custom focus logicSunny Goyal2018-05-231-1/+0
| | | | | | | | | | Using the system logic for focus handling so that partially visible contents are properly handled, eg in overview only hotseat is visible This does changes the focus logic on workspace when both icons and widgets or different sizes are present, we may consider reviving (parts of) this logic in the future Bug: 80189843 Change-Id: I874e284e0a62b579c24d36db9b74da3de7a7e367
* Do not clear grid accupancy if nothing changesSunny Goyal2018-03-261-8/+9
| | | | | | | Hotseat is calling setGridSize on every layout which was clearing gridOccupancy, marking the cells as empty Bug: 73867732 Change-Id: Ie07f5786f2e5bfe2340fd0b8723964f651c929d4
* Adding a custom view for DragHandleSunny Goyal2018-03-261-21/+3
| | | | | | | | | | > Separating page indicator and drag handle > Page indicator always draws irrespactive of oriantation > Drag handle is responsible for accessibility interactions > Adding assissibility actions for DragHandle Bug: 72500733 Change-Id: I9030337456964af1bdf77f1c01956452321f9229
* Simplifying options popup and overview handlingSunny Goyal2018-03-131-8/+0
| | | | | | | | | | > Removing support for page drag-n-drop from pagedView > Removing Overview UI from Launcher3 without quickstep and using options popup instead > Removing touch handlers from CellLayouts and showing options popup based on workspace long press > Excluding touch outside inset when showing the popup Bug: 74136505 Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
* Initial changes for handling configuration changes dynamicallySunny Goyal2018-01-311-2/+0
| | | | | Bug: 71709920 Change-Id: I88cf2229dea28d01c13a5a76d2290e91b07d095e
* Adding isSeascape method to have a common place to orientation checkSunny Goyal2018-01-261-1/+1
| | | | Change-Id: Ia61792b29ab0d1d74f76a8dfa53bbf968874dfaa
* Removing some device profile dependencies in view contructorsSunny Goyal2018-01-161-9/+8
| | | | | Bug: 71709920 Change-Id: I13e33dceaeff71e3fb7bbb93f24be69c17d6da96
* Removing layout handling in DeviceProfile and moving it toSunny Goyal2018-01-101-11/+48
| | | | | | | individual views Bug: 71709920 Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
* Updating landscape layout for launcher/quickstepSunny Goyal2018-01-081-1/+0
| | | | | | | | | | | > Hotseat is tied to navbar (on left in seascape) > Search box shows up in Overview (clicking it would crash for now) > All-apps is no longer fullscreen in landscape > Recents cards are appropriately scaled down > Hotseat is visible in Overview Bug: 70179916 Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
* Removing horizontal bar from page indicatorSunny Goyal2017-12-051-2/+12
| | | | | | | > Removing the clickable bar from pageIndicator in portrait view > Moving onClick logic to respective classes Change-Id: I83a8df90d8c5442890bc09fdda17a82b9d134b8a
* Removing extraction service and palette api dependencySunny Goyal2017-09-291-66/+0
| | | | Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
* Remove haptic on touch downHyunyoung Song2017-09-121-1/+0
| | | | | | Bug: 65463659 Change-Id: I111d18a3d1dcd7877ad4aa5baaeca2e6810be332
* Removing long press support from page-indicatorSunny Goyal2017-06-151-1/+0
| | | | | | Bug: 62445549 Bug: 38163974 Change-Id: Ic0ae44ded7e4755c5401f327ce0d98a9ea96b2ab
* All Apps transition with gradient and scrim.Mario Bertschler2017-05-031-1/+7
| | | | | | | The transition is behind a feature flag and turned off by default. Change-Id: I155840ba82b5a573d874376797db5f739a52d706
* Updating color extraction to include wallpaper theme color.Sunny Goyal2017-04-261-1/+1
| | | | | | | Also adding mathods and callbacks to pass the related data to the callbacks. Bug: 37616877 Change-Id: I7512cac7a603e8e5a05ec3a360c9eec493344b00
* Simplifying some launcher themesSunny Goyal2017-02-161-2/+2
| | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* Using java_style enum generation for protoSunny Goyal2016-12-151-2/+2
| | | | | | | This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
* Merge "Allow long-press on workspace immediately after dropping." into ↵Tony Wickham2016-12-121-1/+1
|\ | | | | | | ub-launcher3-master
| * Allow long-press on workspace immediately after dropping.Tony Wickham2016-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | Previously the touch was consumed until the transition from spring-loaded to normal workspace finished, leading long presses to trigger on the background rather than on apps. This made it difficult to move multiple icons consecutively. Bug: 29631912 Change-Id: I259e618c81f56bc40d08a5d63ddbbf3c82a76baf
* | Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" ↵Sunny Goyal2016-12-121-4/+3
|\ \ | |/ |/| | | into ub-launcher3-master
| * Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-4/+3
| | | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* | Adding an overridable DrawableFactory to allow creating custom icon drawablesSunny Goyal2016-12-071-2/+3
|/ | | | | | > Adding ItemInfo as a parameter for creating drawable Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
* resolve merge conflicts of 2fd0208 to ub-launcher3-masterTony Wickham2016-10-121-1/+1
|\ | | | | | | Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90
| * Use Launcher.getLauncher(Context) instead of type-casting.Tony2016-10-071-1/+1
| | | | | | | | | | Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
* | Refactors in UserEventDispatcherHyunyoung Song2016-10-061-2/+2
|/ | | | | | - LaunchSource -> LogContainer Change-Id: I71bfee992fb1ba7ae80e824d419f7bf8d3020999
* Use ContextCompat.getColor to support API levels below 23.Jon Miranda2016-09-151-1/+2
| | | | | | Found while debugging on Lollipop. Change-Id: Ibe97fd30c4ee8cd0c1735a41802b859345f9e931
* Cancel hotseat color animator before setting a new color.Tony Wickham2016-08-221-4/+16
|\ | | | | | | | | | | am: ef0c537925 Change-Id: I1aea3e288d7e54e788ad95b8599e6d909458b220
| * Cancel hotseat color animator before setting a new color.Tony Wickham2016-08-221-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a race condition that caused the new color to not be applied. For example, here's how the hotseat would become transparent: 1 Launcher is loaded for the first time; as such, there is not yet a color defined for the hotseat, so we start animating to the provided default (Color.TRANSPARENT). Meanwhile we start the color extraction. 2 When the color extraction finishes, we set the hotseat to the new color. However, if launcher is paused at the time (perhaps some retail mode content is showing), then we don't animate the change. 3 If 2 happens before the animation in 1 is complete, the color from 2 will be overriden by subsequent animation frames and thus the hotseat remains transparent until the wallpaper changes. Bug: 30956221 Change-Id: Iddf72379b0162f1b32883ad26ce267473e172849
| * [DO NOT MERGE] Set launch source target correctly for user event loggingHyunyoung Song2016-08-161-1/+0
| | | | | | | | | | | | | | | | Before, everything is set to APP_ICON With this changed, pinned shortcuts are set to DEEPSHORTCUT Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098 (cherry picked from commit 8ce6063c4a5bd90810f0a21c946e5bbad3ce9de4)
* | Fixing broken accessibility dragSunny Goyal2016-08-171-5/+3
| | | | | | | | | | | | | | | | | | | | > Allow touch events on hotseat while in accessible drag as drag now happens in spring loaded state. > Allow drop target buttons to ignore thershold check when in accessibility drag Bug: 30900444 Change-Id: I88274367983fc027b2ddde3a719ca943f4f48587
* | Set launch source target correctly for user event loggingHyunyoung Song2016-08-151-1/+0
|/ | | | | | | Before, everything is set to APP_ICON With this changed, pinned shortcuts are set to DEEPSHORTCUT Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
* Initial changes to tweak layout.Winson2016-07-201-26/+1
| | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Support gray hotseat background in all apps transitionHyunyoung Song2016-07-181-3/+6
| | | | | | b/30201515 Change-Id: Ie4b8442ac804b4df94e9673608129e6ffc0c3360
* Remove relayoutsHyunyoung Song2016-07-011-3/+2
| | | | | | | | | | | | b/29945805 > Workspace relayout occurs when window flag is set to change the status bar. This should not cause AllAppsTransitionController to be initialized. > Setting/Unsetting background drawables on the hotseat also causes unnecessary layout. Fix this issue. Change-Id: I73a3bfd3eb4bc34cf6760ffbd9826e3fef867056
* Prevent all apps transition NPEHyunyoung Song2016-06-281-0/+4
| | | | | | | | | b/29643291 b/29642263 > Also do not change status bar when landscape mode Change-Id: I1e44af8e031856a50a7413ad297c437245e8b2aa
* Fixing a crash on APPS->WORKSPACE transition when animation is automated ↵Hyunyoung Song2016-06-201-0/+9
| | | | | | | | without dragging. b/29424335 Change-Id: I2b109423b5a4cfc94fcda75fdea936785373968f
* Adding a flag (enabled by default) to remove the all-apps button.Sunny Goyal2016-06-171-40/+35
| | | | | | | All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
* Extract color for the hotseat.Tony Wickham2016-05-091-1/+58
| | | | | | | | | | - Only considers the bottom fourth of the wallpaper - Is translucent black or white depending on how dark/light the wallpaper is - Hotseat extends behind the nav bar Bug: 27230217 Change-Id: Id4ea6ee91b4dd221b4c277d22d5041cab178801d
* Refactor UserEventDispatcher (1/2)Hyunyoung Song2016-04-191-2/+2
| | | | | | b/28269657 Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6
* Refactor UserEventLogging, Add predictedRank, replace Bundle with ProtoHyunyoung Song2016-04-131-4/+10
| | | | | | | | | | | | | | b/26494415 - Removed bundle object that became redundant now that we have LauncherEvent proto - Combined Stats and UserEventLogger as they are effectively doing same thing - Removed parent field inside Target - added predictedRank target inside Target b/27967359 - make com.android.launcher3.action.LAUNCH broadcast explicit Later CL: finish packageName/intent/componentHash/predictedRank fields Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
* Remove scrim on highlighted spring-loaded panel.Tony Wickham2016-03-161-1/+1
| | | | | Bug: 27135377 Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc
* Making some view properties exported.Sunny Goyal2016-02-091-0/+3
| | | | | | These will be visible in hierarchy viewer Change-Id: I940724a7f61d67b8502d77be203a94875bc92668