Commit Graph

78507 Commits

Author SHA1 Message Date
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
Tony Wickham 2e3e8bad73 Call bindDeepShortcuts() from runBindSynchronousPage().
am: 80f5787b1c

Change-Id: Ie3b3b2a5c3699792c552092cd601fc04b0788201
2016-06-30 22:01:32 +00: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 4da4bb1b72 Code cleanup/ Move OnLayoutChangedListener to class level.
am: 5215b545b9

Change-Id: I0b7c2154029e3c1dd1ec0c0ae64d484cf4f84b3e
2016-06-30 18:35:42 +00:00
Hyunyoung Song 5215b545b9 Code cleanup/ Move OnLayoutChangedListener to class level.
Change-Id: Ifd3c7b86f61648407c8c93da9ec6d038aa996c0a
2016-06-29 21:25:33 -07:00
Bill Yi e522b807b9 Merge \"Import translations. DO NOT MERGE\" into ub-launcher3-calgary
am: 798f95552b  -s ours

Change-Id: I3b3fcd195350c100140b6278a8f91f3b0b4e529e
2016-06-30 03:17:18 +00:00
TreeHugger Robot 798f95552b Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-06-30 03:12:19 +00:00
TreeHugger Robot 17112a7535 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-06-30 03:12:02 +00:00
Bill Yi 6ffedc1f62 Import translations. DO NOT MERGE
Change-Id: I97ce1b4b83620c64a9bbe8ea1acd73c7b28b5a1d
Auto-generated-cl: translation import
2016-06-29 19:38:58 -07:00
Bill Yi 9deafc4750 Import translations. DO NOT MERGE
Change-Id: I3c1ec437db67beb06a1106d595e11c854863a771
Auto-generated-cl: translation import
2016-06-29 19:38:12 -07:00
Tony Wickham 8c2b266edd Long-press on an app to reveal its shortcuts.
am: 1bce7fd342

Change-Id: Ic385a2bf37e5d743732638ca4d3788457e4140a1
2016-06-30 00:57:16 +00:00
Hyunyoung Song f3061b113b Merge \"Make very first pull up should always work\" into ub-launcher3-calgary
am: 3ccedd234a

Change-Id: Id097206e90d971cfc688f3a5d98124a4fe3ec33f
2016-06-30 00:49:46 +00: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 cad3f4f750 Merge \"Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call\" into ub-launcher3-calgary
am: dff510c0a5

Change-Id: Ibafa9046086701956ebbd7fe3ff3833f65052e4e
2016-06-29 21:40:48 +00: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 cd36a76d08 Setting unused shadow to null
am: f9507122ec

Change-Id: I34f3c37bdae0304cfdcae3b5ab3cb1dcadb607f7
2016-06-29 20:29:06 +00:00
Peter Schiller f9507122ec Setting unused shadow to null
Change-Id: I1122cd9b6b01c18b2393ad6eb2dbc50b0460f78b
2016-06-29 13:23:24 -07:00
Peter Schiller 9fb92875f6 Merge \"Adding shadow to fast scroll indicator\" into ub-launcher3-calgary
am: 5a24858bb2

Change-Id: I1e4bbf0c22fedc229450d551c3aae1a6d5006466
2016-06-29 20:14:54 +00: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 3c79d01d68 Merge \"Fixing alpha of workspace components being changed at too many places\" into ub-launcher3-calgary
am: 138b23bd71

Change-Id: I42a53d18bd1297cb022bcca48a7be9de5aeb5675
2016-06-29 01:27:46 +00: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 74f5ed3538 Merge \"All apps icons should become clickable\" into ub-launcher3-calgary
am: 26def23702

Change-Id: I8d0277113b7349766fde8c739bcb708b79db9570
2016-06-28 23:53:06 +00:00
Hyunyoung Song 26def23702 Merge "All apps icons should become clickable" into ub-launcher3-calgary 2016-06-28 23:50:26 +00:00
Winson 3ed5ef78db Merge \"Bumping icon version to clear db to trigger loading from IconProvider.\" into ub-launcher3-calgary
am: 3ddb64efb5

Change-Id: I348c23d87d2d6d58734009b9c1b6555c24f84e37
2016-06-28 23:40:21 +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
Peter Schiller 814a683d0e Fixed inset overscroll
am: 8ea6a53654

Change-Id: If4232d6611d1f8a79bf41d686d34381c425f429e
2016-06-28 22:56:18 +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 e6fec328bb Merge \"All Apps header shadow is drawn incorrectly\" into ub-launcher3-calgary
am: b43ed13d61

Change-Id: I61bbfb298c7392206be067afda7ce096df43f64f
2016-06-28 22:12:39 +00: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 7e6ec83b7c Merge \"Extend all apps pull up activation area to page indicator view b/29752599\" into ub-launcher3-calgary
am: 344ca1b827

Change-Id: I5dc9d8902d816ad03bd085d5573711ef216231be
2016-06-28 19:38:44 +00:00
Hyunyoung Song 626b87f463 Prevent all apps transition NPE
am: f7e5e374fe

Change-Id: Iaa0bd1a97bda2c64cd6b887fcdd3e5502007d8c7
2016-06-28 19:38:44 +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 301b5696a7 Invert nav bar to light when status bar changes in all apps.
am: 4a582162bc

Change-Id: Ib1e56341ac9256f76bfe40456ec641df5329c61f
2016-06-28 17:12:30 +00: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
Tony 5a73972b20 Merge \"Surround shortcut API calls with try-catch.\" into ub-launcher3-calgary
am: f50b3cb3cb

Change-Id: Iff0889ccb95a259ad5bddce4c9df931da4d8a44c
2016-06-27 20:50:17 +00:00
Tony Wickham f50b3cb3cb Merge "Surround shortcut API calls with try-catch." into ub-launcher3-calgary 2016-06-27 20:43:14 +00:00
Hyunyoung Song bdedf19e61 Merge \"Revert \"Cancel animation whenever MotionEvent.ACTION_DOWN is detected\"\" into ub-launcher3-calgary
am: 136a822e02

Change-Id: I2efbd5b0b2eeeea9e7bfd7fbc1dc6550ef028beb
2016-06-27 20:18:53 +00:00
Hyunyoung Song 136a822e02 Merge "Revert "Cancel animation whenever MotionEvent.ACTION_DOWN is detected"" into ub-launcher3-calgary 2016-06-27 20:14:10 +00:00
Hyunyoung Song 99eb28a556 Revert "Cancel animation whenever MotionEvent.ACTION_DOWN is detected"
This reverts commit 4325a56f53.

Change-Id: If49a4e169b9dad1e833a7d075d67904ef0b671c5
2016-06-27 20:13:55 +00:00