Commit Graph

5442 Commits

Author SHA1 Message Date
Peter Schiller
31be842887 Merge "Simplified search focus logic" into ub-launcher3-calgary 2016-07-08 17:21:54 +00:00
Peter Schiller
dcb8259286 Simplified search focus logic
Change-Id: I3f47e73c4a3d34f10e947fda2c7cae09211cc26d
2016-07-08 10:15:51 -07:00
Hyunyoung Song
2359a68017 Do not remove onLayoutChangeListener on hotseat inside AllAppsTransitionController
Change-Id: I883660906b5bf59035f0382e6a448c6992a58a0c
2016-07-07 16:11:16 -07:00
Sunny Goyal
e49a97aba0 Changing isExternalDragWidget to isDragWidget as workspace goes to
modal state even when dragging from workspace

Bug: 29900481
Change-Id: I60ce6073b1c06ed19c75a341f9b73f6a147be889
2016-07-07 15:28:07 -07:00
Sunny Goyal
2ee27b12e9 Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-calgary 2016-07-07 16:50:26 +00:00
Sunny Goyal
27731e4d7d Merge "Fixing accessibility drag and drop Since the page's accessibility flag is updated when entering drag mode, it does not need to be updated on state change" into ub-launcher3-calgary 2016-07-07 07:34:38 +00:00
Hyunyoung Song
968eeebadc Merge "Set the all apps nav bar to black. b/29998559" into ub-launcher3-calgary 2016-07-06 23:22:36 +00:00
Hyunyoung Song
e28bd7ca86 Set the all apps nav bar to black.
b/29998559

Change-Id: Iba66b390f78fdf25b7eaf912012aabaf7df56476
2016-07-06 22:54:33 +00:00
Hyunyoung Song
230b2b7f44 Second workspace page icons should not show up when all apps is shown in landscape.
b/29931405

> Also some method names to setTranslation -> setTranslationAndAlpha to
match its implementation.

Change-Id: Icb6ec5df8a267a9024803c70a694ea9b76e5e34d
2016-07-06 15:03:59 -07:00
Sunny Goyal
d8d19938e4 Fixing accessibility drag and drop
Since the page's accessibility flag is updated when entering
drag mode, it does not need to be updated on state change

Bug: 29581071
Change-Id: I1a876b4e8530601cb9bf25d097ea37780b525610
2016-07-06 11:46:36 -07:00
Hyunyoung Song
7111a26813 Merge "Remove relayouts b/29945805" into ub-launcher3-calgary 2016-07-04 08:53:37 +00:00
Hyunyoung Song
45eb757ea7 Remove relayouts
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
2016-07-01 18:04:07 -07:00
Adam Cohen
d1e0cec518 Avoid unnecessary layout passes from insets callbacks if they haven't changed
Change-Id: Ia7560bd466ff47103811a1a1795af5a5a25abb59
2016-07-01 16:55:52 -07:00
Tony Wickham
c9e71b8876 Merge "Use reflection to call LauncherApps.startShortcut()." into ub-launcher3-calgary 2016-07-01 22:03:12 +00:00
Tony Wickham
f25cea452f Use reflection to call LauncherApps.startShortcut().
This is necessary because it now returns void instead of boolean, but
we don't yet have the latest SDK with this change to compile against.

Change-Id: Ie4ca718bbe828fd9addfaf003a74b35d32410891
2016-07-01 13:03:37 -07:00
Andrew Sapperstein
b900f1cbaf Merge "Delete all* references to launcher clings." into ub-launcher3-calgary 2016-07-01 18:03:09 +00:00
Andrew Sapperstein
932eb8313c Delete all* references to launcher clings.
Launcher clings are dead. Delete all the code and resources associated with
them.

* Did not delete the actual code the marks the cling as dismissed since it's
used in db upgrade and backup/restore paths. Figured we probably want to keep
that.

Change-Id: I28841b4a430187b62b239afeb64bee81a798e259
Fixes: 29461092
2016-07-01 10:23:20 -07:00
Andrew Sapperstein
8a4bb33472 Merge "Stop showing first run launcher cling." into ub-launcher3-calgary 2016-07-01 03:12:12 +00:00
Andrew Sapperstein
3da982fbab Merge "Use colorSecondary for darker bg color." into ub-launcher3-calgary 2016-07-01 03:11:20 +00:00
Hyunyoung Song
5a2af756ea Merge "Get rid of CATCH state in verticalpulldetector" into ub-launcher3-calgary 2016-07-01 01:33:51 +00:00
Peter Schiller
310a988993 Updating all apps to match spec
Change-Id: Ie351fdea2e3b05ca911e6533f0c5d00c17e0847c
2016-06-30 18:09:51 -07:00
Andrew Sapperstein
8b9cb08b02 Stop showing first run launcher cling.
Followup CL will delete the dead code.

Bug: 29461092
Change-Id: Iaf96184219b7b052b7a8d97f403afec236d28437
2016-06-30 17:39:38 -07:00
Hyunyoung Song
21b7571b69 Get rid of CATCH state in verticalpulldetector
> There was a bug regarding mLastDisplacement not being cleared out, which
caused a jump of the all apps container.
> Also as a cleanup, got rid of the CATCH state.

Change-Id: Iae9af0be04cce15f2ba4e6734d1615f879921e5d
2016-06-30 17:38:58 -07:00
Hyunyoung Song
b1e9e8d662 Merge "Fix hotseat flicker b/29648104" into ub-launcher3-calgary 2016-07-01 00:32:38 +00:00
Tony Wickham
2aa31b8fcc Merge "Fix some issues with shortcut containers opened inside folders." into ub-launcher3-calgary 2016-06-30 23:35:03 +00:00
Tony Wickham
2f2104ccdf Fix some issues with shortcut containers opened inside folders.
- Dragging a shortcut from a container inside a folder was buggy
  because the folder assumes that all drags are removing an item
  (so it marks the cell as unoccupied, etc.). So we just close
  the folder when dragging a shortcut.
- When the shortcuts container opened outside of a folder, touches
  on it were incercepted by DragLayer to close the folder. So we
  move the container intercept check first, and return false if the
  touch is over the container so it can handle the touch.

Change-Id: I8c5814513e99910b2930e05d9a62dfe0a0a60f3e
2016-06-30 16:34:20 -07:00
Hyunyoung Song
a97c64bf9f Fix hotseat flicker
b/29648104

Change-Id: I74eea09ab5c4d03c0df3b4a82c7636299edf4d32
2016-06-30 15:30:53 -07:00
Andrew Sapperstein
5f7750d75c Use colorSecondary for darker bg color.
Used for widget headers and a few other places.

In order to support pre-API 25, an app-local version of colorSecondary
is created and used throughout the app. A new WidgetContainerTheme
sets colorSecondary to a canned value. On API 25+, colorSecondary
is set to the platform value.

Change-Id: Ie0dd66333052b7346eea5d82d1c88417c6a2cd00
Fixes: 28625102
2016-06-30 14:17:19 -07:00
Tony Wickham
80f5787b1c Call bindDeepShortcuts() from runBindSynchronousPage().
Otherwise Launcher's copy of the deep shortcut map is cleared when Launcher
is re-created, such as on rotation, so the UI won't show shortcuts.

Change-Id: I3bb6a904762dc4661cc2b5da28485e4bf778c9e7
2016-06-30 14:14:48 -07:00
Hyunyoung Song
5215b545b9 Code cleanup/ Move OnLayoutChangedListener to class level.
Change-Id: Ifd3c7b86f61648407c8c93da9ec6d038aa996c0a
2016-06-29 21:25:33 -07:00
Tony Wickham
1bce7fd342 Long-press on an app to reveal its shortcuts.
- Add ShortcutsContainerListener to icons on workspace, folders, and
  all apps. This handles long-press and forwards following touches to
  the DeepShortcutsContainer that is created.
- Drag over shortcut before lifting finger to launch it.
- Shortcuts are rendered in pill-shaped DeepShortcutViews,
  which are inside DeepShortcutContainer on DragLayer.
- The shortcut container orients above or below the icon, and left or
  right-aligns with it. Biases for above + left-align.
- Long press a DeepShortcutPill to drag and pin it to the workspace.

Bug: 28980830
Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
2016-06-29 17:48:46 -07:00
Hyunyoung Song
3ccedd234a Merge "Make very first pull up should always work" into ub-launcher3-calgary 2016-06-30 00:41:36 +00:00
Hyunyoung Song
83fb07bb6c Make very first pull up should always work
> Also delete unnecessary code.
> Fix a bug where the container doesn't snap to the top and bottom.

Change-Id: If820e9fae03d060e53ac028f8e8d827c90b354fc
2016-06-29 16:40:06 -07:00
Hyunyoung Song
dff510c0a5 Merge "Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call" into ub-launcher3-calgary 2016-06-29 21:34:16 +00:00
Hyunyoung Song
b047e36f2c Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call
Change-Id: Idf360a3580eff2ef873e7e0c20eb5ee2355d9be7
2016-06-29 14:03:20 -07:00
Peter Schiller
f9507122ec Setting unused shadow to null
Change-Id: I1122cd9b6b01c18b2393ad6eb2dbc50b0460f78b
2016-06-29 13:23:24 -07:00
Peter Schiller
5a24858bb2 Merge "Adding shadow to fast scroll indicator" into ub-launcher3-calgary 2016-06-29 20:09:54 +00:00
Peter Schiller
1d62b8a7fc Adding shadow to fast scroll indicator
Bug: 29761848
Change-Id: I9db7e73fb6b8c703be21a6c3f9e2a50253a48ec7
2016-06-29 12:07:55 -07:00
Sunny Goyal
138b23bd71 Merge "Fixing alpha of workspace components being changed at too many places" into ub-launcher3-calgary 2016-06-29 01:20:00 +00:00
Hyunyoung Song
26def23702 Merge "All apps icons should become clickable" into ub-launcher3-calgary 2016-06-28 23:50:26 +00:00
Hyunyoung Song
67def6cef1 All apps icons should become clickable
b/29761088
b/29610290

> Workspace transition state was not being properly set which
caused onClick to not allow apps to launch. Temporary solution:
do not call the onLauncherTransitionPrepare inside
AllAppsTransitionController.

> Fixing another important bug which doesn't properly set workspace
state to correct alpha value because hotseat background drawable
is null when home is triggered from settings app after wallpaper is
changed. The color extractor has not figured out how hotseat drawable
color should be set to immediately after wallpaper change.

Change-Id: I9f797dbda6c73c71816e5070ed4da37099b26a6d
2016-06-28 16:38:18 -07:00
Winson Chung
3ddb64efb5 Merge "Bumping icon version to clear db to trigger loading from IconProvider." into ub-launcher3-calgary 2016-06-28 23:36:59 +00:00
Winson
5cb61e4808 Bumping icon version to clear db to trigger loading from IconProvider.
Bug: 29401565
Change-Id: I168dc9b52a972c7858ff8859a6375df314914105
2016-06-28 15:37:30 -07:00
Peter Schiller
8ea6a53654 Fixed inset overscroll
Bug: 29334391
Change-Id: I621f4b78e2c7d80d024ba1f9bcd993ff8a35ed01
2016-06-28 15:13:02 -07:00
Peter Schiller
b43ed13d61 Merge "All Apps header shadow is drawn incorrectly" into ub-launcher3-calgary 2016-06-28 22:08:54 +00:00
Hyunyoung Song
344ca1b827 Merge "Extend all apps pull up activation area to page indicator view b/29752599" into ub-launcher3-calgary 2016-06-28 19:29:51 +00:00
Hyunyoung Song
f7e5e374fe Prevent all apps transition NPE
b/29643291
b/29642263

> Also do not change status bar when landscape mode

Change-Id: I1e44af8e031856a50a7413ad297c437245e8b2aa
2016-06-28 12:27:41 -07:00
Hyunyoung Song
7744169812 Extend all apps pull up activation area to page indicator view
b/29752599

Change-Id: I3ee5efefa98defbc8f386895753946efe79708b4
Background: page indicator's background is where the caret symbol is.
2016-06-27 23:51:36 -07:00
Peter Schiller
cbea086284 All Apps header shadow is drawn incorrectly
Bug: 29777304
Change-Id: I9ead05b28d1d57dd6a157126637296a97e3f7058
2016-06-27 18:59:32 -07:00
Hyunyoung Song
4a582162bc Invert nav bar to light when status bar changes in all apps.
Change-Id: I48acf2f20cd3e265e2f84bfa412d3d233cb76a01
2016-06-27 17:48:17 -07:00