Commit Graph

11548 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 5215b545b9 Code cleanup/ Move OnLayoutChangedListener to class level.
Change-Id: Ifd3c7b86f61648407c8c93da9ec6d038aa996c0a
2016-06-29 21:25:33 -07:00
TreeHugger Robot 798f95552b Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-06-30 03:12:19 +00: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 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
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 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
Hyunyoung Song 5f8fef4be4 Merge "Cancel animation whenever MotionEvent.ACTION_DOWN is detected" into ub-launcher3-calgary 2016-06-27 19:00:21 +00:00
Tony acd86ff486 Surround shortcut API calls with try-catch.
Bug: 29732661
Change-Id: Iba96eedab67e7715f34139c64f96b1a81ba30ea5
2016-06-27 11:53:58 -07:00
Hyunyoung Song 4325a56f53 Cancel animation whenever MotionEvent.ACTION_DOWN is detected
Change-Id: I130d05907068ecbec12e09207c7ca2e171e90926
2016-06-27 11:51:06 -07:00
Sunny Goyal 6d64d88b0f Fixing alpha of workspace components being changed at too many places
> Hotseat alpha is changed by all-apps controller, workspaceStateTransition
and overlay transition. Created a 3 state alpha for hotseat and pageIndicator
> Simplified the page-background and alpha animation during state transition
by moving the code in the same if block
> Disabling partial page fading when pull-up all apps is enabled. This fixes
the bug when pressing home with all-apps opened causes other pages to disappear.

Change-Id: I4a75b89af12b48e9fbc49514e641fd424d07199c
2016-06-27 10:43:04 -07:00
Bill Yi 1b65c6e97c Import translations. DO NOT MERGE
Change-Id: I4f5fae17ab275cf5bfe13028cac26bee0b67d6c9
Auto-generated-cl: translation import
2016-06-27 09:00:57 -07:00
TreeHugger Robot c32e63fbda Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-06-24 05:49:20 +00:00
Sunny Goyal 0d21daace2 Merge "Making some shortcut manager calls protected by MR1 version check" into ub-launcher3-calgary 2016-06-23 21:56:25 +00:00
Sunny Goyal 9994b2b171 Making some shortcut manager calls protected by MR1 version check
Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
2016-06-23 14:55:56 -07:00
Sunny Goyal 11cec0209c Merge "Removing unnecessary object creation and double loop during getDescendantCoordRelativeToAncestor" into ub-launcher3-calgary 2016-06-23 21:29:21 +00:00
Bill Yi 43c668b498 Import translations. DO NOT MERGE
Change-Id: Ifaac7090ceb63b188e8e4f8c5007e1b0ba969737
Auto-generated-cl: translation import
2016-06-23 07:26:17 -07:00
Hyunyoung Song aac20dba11 Merge "Add margin to all apps recycler container view b/29509347 > Last row inside recycler view was obstructed by nav bar making it difficult to interact with before." into ub-launcher3-calgary 2016-06-22 21:57:23 +00:00
Sunny Goyal 2e08409732 Build fix
Change-Id: Ieaf5c91b85c56a3e042bffaad0fdaba090a891cf
2016-06-22 14:37:41 -07:00
Sunny Goyal 653bfcc743 Merge "Accessibility fixes and updates" into ub-launcher3-calgary 2016-06-22 21:34:06 +00:00
Sunny Goyal d0a6ae7f64 Accessibility fixes and updates
> Adding custom actions on the page indicator to go to overview mode
> Disabling custom actions on the first page
> Disabling 'move page left' on the second page

Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
2016-06-22 14:17:34 -07:00
Sunny Goyal 0c1e7280e2 Merge "Updating some strings 'Tap & hold' > 'Touch & hold'" into ub-launcher3-calgary 2016-06-22 21:13:45 +00:00
Tony Wickham ec1b1c542c Merge "Add support for launcher shortcuts." into ub-launcher3-calgary 2016-06-22 20:35:31 +00:00
Sunny Goyal 5b2de72e4c Updating some strings 'Tap & hold' > 'Touch & hold'
Bug: 29388170
Change-Id: Ida97ac8b49d0b365a5437ec4926d16c6486659eb
2016-06-22 12:04:50 -07:00
Sunny Goyal 8e6a800480 Merge "Fixing potantial context leak code path" into ub-launcher3-calgary 2016-06-22 18:58:25 +00:00
Hyunyoung Song 1c72b72b21 Add margin to all apps recycler container view
b/29509347
> Last row inside recycler view was obstructed by nav bar
making it difficult to interact with before.

Change-Id: I90f0f402e14230a1757f208f9b92800f10cdb38c
2016-06-22 10:59:07 -07:00
Hyunyoung Song fce71421bf Merge "Fix LauncherInstrumentationTestCase#openAllApps() method. b/29535532" into ub-launcher3-calgary 2016-06-22 17:00:41 +00:00
Hyunyoung Song 8cea8194e0 Fix LauncherInstrumentationTestCase#openAllApps() method.
b/29535532

Change-Id: Iebf20c2fe66ad244b04658b15ade21d579fb2c12
2016-06-22 09:59:40 -07:00
Sunny Goyal 803896767b Fixing bug in GridSizeMigrationTask, where it was not accounting for
an extra space when there is no all-apps icon

Bug: 29569843
Change-Id: Ib768f0d069aed413bd8f4c2aa86ab1d3d657680e
2016-06-22 09:51:07 -07:00
Hyunyoung Song 4efaed5637 Merge "All apps pull up work b/28917826 b/29469966 b/29542376" into ub-launcher3-calgary 2016-06-21 23:55:54 +00:00