OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoMerge "Fix some issues with shortcut containers opened inside folders." into ub-launc...
Tony Wickham [Thu, 30 Jun 2016 23:35:02 +0000 (23:35 +0000)]
Merge "Fix some issues with shortcut containers opened inside folders." into ub-launcher3-calgary

8 years agoFix some issues with shortcut containers opened inside folders.
Tony Wickham [Thu, 30 Jun 2016 19:07:33 +0000 (12:07 -0700)]
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

8 years agoCall bindDeepShortcuts() from runBindSynchronousPage().
Tony Wickham [Thu, 30 Jun 2016 01:12:15 +0000 (18:12 -0700)]
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

8 years agoCode cleanup/ Move OnLayoutChangedListener to class level.
Hyunyoung Song [Thu, 30 Jun 2016 04:25:33 +0000 (21:25 -0700)]
Code cleanup/ Move OnLayoutChangedListener to class level.

Change-Id: Ifd3c7b86f61648407c8c93da9ec6d038aa996c0a

8 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Thu, 30 Jun 2016 03:12:19 +0000 (03:12 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 30 Jun 2016 02:38:12 +0000 (19:38 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3c1ec437db67beb06a1106d595e11c854863a771
Auto-generated-cl: translation import

8 years agoLong-press on an app to reveal its shortcuts.
Tony Wickham [Fri, 29 Apr 2016 00:39:03 +0000 (17:39 -0700)]
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

8 years agoMerge "Make very first pull up should always work" into ub-launcher3-calgary
Hyunyoung Song [Thu, 30 Jun 2016 00:41:36 +0000 (00:41 +0000)]
Merge "Make very first pull up should always work" into ub-launcher3-calgary

8 years agoMake very first pull up should always work
Hyunyoung Song [Wed, 29 Jun 2016 23:40:06 +0000 (16:40 -0700)]
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

8 years agoMerge "Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call...
Hyunyoung Song [Wed, 29 Jun 2016 21:34:16 +0000 (21:34 +0000)]
Merge "Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call" into ub-launcher3-calgary

8 years agoRemove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call
Hyunyoung Song [Wed, 29 Jun 2016 21:03:20 +0000 (14:03 -0700)]
Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call

Change-Id: Idf360a3580eff2ef873e7e0c20eb5ee2355d9be7

8 years agoSetting unused shadow to null
Peter Schiller [Wed, 29 Jun 2016 20:23:24 +0000 (13:23 -0700)]
Setting unused shadow to null

Change-Id: I1122cd9b6b01c18b2393ad6eb2dbc50b0460f78b

8 years agoMerge "Adding shadow to fast scroll indicator" into ub-launcher3-calgary
Peter Schiller [Wed, 29 Jun 2016 20:09:54 +0000 (20:09 +0000)]
Merge "Adding shadow to fast scroll indicator" into ub-launcher3-calgary

8 years agoAdding shadow to fast scroll indicator
Peter Schiller [Wed, 29 Jun 2016 16:46:43 +0000 (09:46 -0700)]
Adding shadow to fast scroll indicator

Bug: 29761848
Change-Id: I9db7e73fb6b8c703be21a6c3f9e2a50253a48ec7

8 years agoMerge "Fixing alpha of workspace components being changed at too many places" into...
Sunny Goyal [Wed, 29 Jun 2016 01:20:00 +0000 (01:20 +0000)]
Merge "Fixing alpha of workspace components being changed at too many places" into ub-launcher3-calgary

8 years agoMerge "All apps icons should become clickable" into ub-launcher3-calgary
Hyunyoung Song [Tue, 28 Jun 2016 23:50:26 +0000 (23:50 +0000)]
Merge "All apps icons should become clickable" into ub-launcher3-calgary

8 years agoAll apps icons should become clickable
Hyunyoung Song [Tue, 28 Jun 2016 23:38:18 +0000 (16:38 -0700)]
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

8 years agoMerge "Bumping icon version to clear db to trigger loading from IconProvider." into...
Winson Chung [Tue, 28 Jun 2016 23:36:58 +0000 (23:36 +0000)]
Merge "Bumping icon version to clear db to trigger loading from IconProvider." into ub-launcher3-calgary

8 years agoBumping icon version to clear db to trigger loading from IconProvider.
Winson [Tue, 28 Jun 2016 22:37:30 +0000 (15:37 -0700)]
Bumping icon version to clear db to trigger loading from IconProvider.

Bug: 29401565
Change-Id: I168dc9b52a972c7858ff8859a6375df314914105

8 years agoFixed inset overscroll
Peter Schiller [Mon, 27 Jun 2016 23:36:33 +0000 (16:36 -0700)]
Fixed inset overscroll

Bug: 29334391
Change-Id: I621f4b78e2c7d80d024ba1f9bcd993ff8a35ed01

8 years agoMerge "All Apps header shadow is drawn incorrectly" into ub-launcher3-calgary
Peter Schiller [Tue, 28 Jun 2016 22:08:54 +0000 (22:08 +0000)]
Merge "All Apps header shadow is drawn incorrectly" into ub-launcher3-calgary

8 years agoMerge "Extend all apps pull up activation area to page indicator view b/29752599...
Hyunyoung Song [Tue, 28 Jun 2016 19:29:50 +0000 (19:29 +0000)]
Merge "Extend all apps pull up activation area to page indicator view b/29752599" into ub-launcher3-calgary

8 years agoPrevent all apps transition NPE
Hyunyoung Song [Tue, 28 Jun 2016 19:16:47 +0000 (12:16 -0700)]
Prevent all apps transition NPE

b/29643291
b/29642263

> Also do not change status bar when landscape mode

Change-Id: I1e44af8e031856a50a7413ad297c437245e8b2aa

8 years agoExtend all apps pull up activation area to page indicator view
Hyunyoung Song [Tue, 28 Jun 2016 05:00:48 +0000 (22:00 -0700)]
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.

8 years agoAll Apps header shadow is drawn incorrectly
Peter Schiller [Mon, 27 Jun 2016 23:15:30 +0000 (16:15 -0700)]
All Apps header shadow is drawn incorrectly

Bug: 29777304
Change-Id: I9ead05b28d1d57dd6a157126637296a97e3f7058

8 years agoInvert nav bar to light when status bar changes in all apps.
Hyunyoung Song [Tue, 28 Jun 2016 00:48:17 +0000 (17:48 -0700)]
Invert nav bar to light when status bar changes in all apps.

Change-Id: I48acf2f20cd3e265e2f84bfa412d3d233cb76a01

8 years agoMerge "Surround shortcut API calls with try-catch." into ub-launcher3-calgary
Tony Wickham [Mon, 27 Jun 2016 20:43:14 +0000 (20:43 +0000)]
Merge "Surround shortcut API calls with try-catch." into ub-launcher3-calgary

8 years agoMerge "Revert "Cancel animation whenever MotionEvent.ACTION_DOWN is detected"" into...
Hyunyoung Song [Mon, 27 Jun 2016 20:14:10 +0000 (20:14 +0000)]
Merge "Revert "Cancel animation whenever MotionEvent.ACTION_DOWN is detected"" into ub-launcher3-calgary

8 years agoRevert "Cancel animation whenever MotionEvent.ACTION_DOWN is detected"
Hyunyoung Song [Mon, 27 Jun 2016 20:13:55 +0000 (20:13 +0000)]
Revert "Cancel animation whenever MotionEvent.ACTION_DOWN is detected"

This reverts commit 4325a56f5359a83164692ae6109d6463f792bf13.

Change-Id: If49a4e169b9dad1e833a7d075d67904ef0b671c5

8 years agoMerge "Cancel animation whenever MotionEvent.ACTION_DOWN is detected" into ub-launche...
Hyunyoung Song [Mon, 27 Jun 2016 19:00:21 +0000 (19:00 +0000)]
Merge "Cancel animation whenever MotionEvent.ACTION_DOWN is detected" into ub-launcher3-calgary

8 years agoSurround shortcut API calls with try-catch.
Tony [Mon, 27 Jun 2016 05:16:46 +0000 (22:16 -0700)]
Surround shortcut API calls with try-catch.

Bug: 29732661
Change-Id: Iba96eedab67e7715f34139c64f96b1a81ba30ea5

8 years agoCancel animation whenever MotionEvent.ACTION_DOWN is detected
Hyunyoung Song [Mon, 27 Jun 2016 18:51:06 +0000 (11:51 -0700)]
Cancel animation whenever MotionEvent.ACTION_DOWN is detected

Change-Id: I130d05907068ecbec12e09207c7ca2e171e90926

8 years agoFixing alpha of workspace components being changed at too many places
Sunny Goyal [Fri, 24 Jun 2016 16:57:04 +0000 (09:57 -0700)]
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

8 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 27 Jun 2016 16:00:57 +0000 (09:00 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4f5fae17ab275cf5bfe13028cac26bee0b67d6c9
Auto-generated-cl: translation import

8 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Fri, 24 Jun 2016 05:49:19 +0000 (05:49 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

8 years agoMerge "Making some shortcut manager calls protected by MR1 version check" into ub...
Sunny Goyal [Thu, 23 Jun 2016 21:56:25 +0000 (21:56 +0000)]
Merge "Making some shortcut manager calls protected by MR1 version check" into ub-launcher3-calgary

8 years agoMaking some shortcut manager calls protected by MR1 version check
Sunny Goyal [Thu, 23 Jun 2016 21:17:24 +0000 (14:17 -0700)]
Making some shortcut manager calls protected by MR1 version check

Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be

8 years agoMerge "Removing unnecessary object creation and double loop during getDescendantCoord...
Sunny Goyal [Thu, 23 Jun 2016 21:29:20 +0000 (21:29 +0000)]
Merge "Removing unnecessary object creation and double loop during getDescendantCoordRelativeToAncestor" into ub-launcher3-calgary

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Jun 2016 14:26:17 +0000 (07:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ifaac7090ceb63b188e8e4f8c5007e1b0ba969737
Auto-generated-cl: translation import

8 years agoMerge "Add margin to all apps recycler container view b/29509347 > Last row inside...
Hyunyoung Song [Wed, 22 Jun 2016 21:57:22 +0000 (21:57 +0000)]
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

8 years agoBuild fix
Sunny Goyal [Wed, 22 Jun 2016 21:37:34 +0000 (14:37 -0700)]
Build fix

Change-Id: Ieaf5c91b85c56a3e042bffaad0fdaba090a891cf

8 years agoMerge "Accessibility fixes and updates" into ub-launcher3-calgary
Sunny Goyal [Wed, 22 Jun 2016 21:34:06 +0000 (21:34 +0000)]
Merge "Accessibility fixes and updates" into ub-launcher3-calgary

8 years agoAccessibility fixes and updates
Sunny Goyal [Thu, 16 Jun 2016 19:29:03 +0000 (12:29 -0700)]
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

8 years agoMerge "Updating some strings 'Tap & hold' > 'Touch & hold'" into ub-launcher3-calgary
Sunny Goyal [Wed, 22 Jun 2016 21:13:45 +0000 (21:13 +0000)]
Merge "Updating some strings 'Tap & hold' > 'Touch & hold'" into ub-launcher3-calgary

8 years agoMerge "Add support for launcher shortcuts." into ub-launcher3-calgary
Tony Wickham [Wed, 22 Jun 2016 20:35:30 +0000 (20:35 +0000)]
Merge "Add support for launcher shortcuts." into ub-launcher3-calgary

8 years agoUpdating some strings 'Tap & hold' > 'Touch & hold'
Sunny Goyal [Wed, 22 Jun 2016 19:03:53 +0000 (12:03 -0700)]
Updating some strings 'Tap & hold' > 'Touch & hold'

Bug: 29388170
Change-Id: Ida97ac8b49d0b365a5437ec4926d16c6486659eb

8 years agoMerge "Fixing potantial context leak code path" into ub-launcher3-calgary
Sunny Goyal [Wed, 22 Jun 2016 18:58:24 +0000 (18:58 +0000)]
Merge "Fixing potantial context leak code path" into ub-launcher3-calgary

8 years agoAdd margin to all apps recycler container view
Hyunyoung Song [Wed, 22 Jun 2016 17:59:07 +0000 (10:59 -0700)]
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

8 years agoMerge "Fix LauncherInstrumentationTestCase#openAllApps() method. b/29535532" into...
Hyunyoung Song [Wed, 22 Jun 2016 17:00:41 +0000 (17:00 +0000)]
Merge "Fix LauncherInstrumentationTestCase#openAllApps() method. b/29535532" into ub-launcher3-calgary

8 years agoFix LauncherInstrumentationTestCase#openAllApps() method.
Hyunyoung Song [Wed, 22 Jun 2016 16:59:40 +0000 (09:59 -0700)]
Fix LauncherInstrumentationTestCase#openAllApps() method.
b/29535532

Change-Id: Iebf20c2fe66ad244b04658b15ade21d579fb2c12

8 years agoFixing bug in GridSizeMigrationTask, where it was not accounting for
Sunny Goyal [Wed, 22 Jun 2016 16:50:21 +0000 (09:50 -0700)]
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

8 years agoMerge "All apps pull up work b/28917826 b/29469966 b/29542376" into ub-launcher3...
Hyunyoung Song [Tue, 21 Jun 2016 23:55:53 +0000 (23:55 +0000)]
Merge "All apps pull up work b/28917826 b/29469966 b/29542376" into ub-launcher3-calgary

8 years agoAll apps pull up work
Hyunyoung Song [Tue, 21 Jun 2016 23:37:13 +0000 (16:37 -0700)]
All apps pull up work
b/28917826
b/29469966
b/29542376

- Move state transition to when the finger is lifted and not when
the view settles.
- Refactor the vertical pull detector to use bit operation to define
which direction scroll to allow.
- Fixed many issues regarding screen rotation
- Fixes issue where slowly sliding the all apps goes into overview mode
- Fixes issue where quick slide up leads to animation starting from middle

Change-Id: I2384a0fcc5550e17359a044ef506bcc66507da5f

8 years agoAdd support for launcher shortcuts.
Tony Wickham [Thu, 19 May 2016 18:19:39 +0000 (11:19 -0700)]
Add support for launcher shortcuts.

- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
  ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
  (pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
  pin them. In a future CL it will use the cache, but for now it
  simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
  unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
  which Launcher gets a copy of after it is changed in the background.
  This will allow us to know how many shortcuts an app has immediately,
  and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca

8 years agoMaking LauncherActivityInstallInfo public to prevent access modification
Sunny Goyal [Tue, 21 Jun 2016 22:28:30 +0000 (15:28 -0700)]
Making LauncherActivityInstallInfo public to prevent access modification
by proguard

Bug: 29539169
Change-Id: I2fbe7672b6456dd60393093bf4a73e7336dbaca6

8 years agoMerge "Fix container horizontal padding" into ub-launcher3-calgary
Hyunyoung Song [Tue, 21 Jun 2016 18:29:57 +0000 (18:29 +0000)]
Merge "Fix container horizontal padding" into ub-launcher3-calgary

8 years agoFix container horizontal padding
Hyunyoung Song [Tue, 21 Jun 2016 18:21:39 +0000 (11:21 -0700)]
Fix container horizontal padding

Change-Id: I41b84db6d71df7f4e47098fa9ed7eda4465f18c3

8 years agoMerge "Maintaining separate alpha for x and y translations" into ub-launcher3-calgary
Sunny Goyal [Tue, 21 Jun 2016 17:46:56 +0000 (17:46 +0000)]
Merge "Maintaining separate alpha for x and y translations" into ub-launcher3-calgary

8 years agoAdding some tracing sections around launcher startup
Sunny Goyal [Mon, 20 Jun 2016 21:52:14 +0000 (14:52 -0700)]
Adding some tracing sections around launcher startup

Bug: 29007436
Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26

8 years agoFixing potantial context leak code path
Sunny Goyal [Mon, 20 Jun 2016 21:56:28 +0000 (14:56 -0700)]
Fixing potantial context leak code path

The javadoc in createUserEventDispatcher suggested that it can be used
as a singleton. But it was being constructed as an inner class which
would cause context leak when used as singleton

Change-Id: I706018d4ab26b506ac936fe1a7304d9b530b820c

8 years agoMerge "Fixing a crash on APPS->WORKSPACE transition when animation is automated witho...
Hyunyoung Song [Mon, 20 Jun 2016 21:20:31 +0000 (21:20 +0000)]
Merge "Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging. b/29424335" into ub-launcher3-calgary

8 years agoFixing a crash on APPS->WORKSPACE transition when animation is automated without...
Hyunyoung Song [Mon, 20 Jun 2016 20:54:42 +0000 (13:54 -0700)]
Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging.
b/29424335

Change-Id: I2b109423b5a4cfc94fcda75fdea936785373968f

8 years agoMerge "Update Launcher to use theme colors." into ub-launcher3-calgary
Andrew Sapperstein [Mon, 20 Jun 2016 19:38:54 +0000 (19:38 +0000)]
Merge "Update Launcher to use theme colors." into ub-launcher3-calgary

8 years agoUpdate Launcher to use theme colors.
Andrew Sapperstein [Sun, 19 Jun 2016 19:49:00 +0000 (12:49 -0700)]
Update Launcher to use theme colors.

Instead of using hard-coded variants of colors, use the theme color
that corresponds (colorAccent, colorPrimary, etc).

Updated:
- "Search for more apps" text
- App info drop target hover color
- PageIndicatorDots
- All apps & widget scroll bar & scroll popup colors
- All apps section text color
- widget picker background color

TODO:
- widget picker header color

BUG: 28625102
Change-Id: I74b543ff71b8caef8cd950c8183ac84c759cb4d5

8 years agoMaintaining separate alpha for x and y translations
Sunny Goyal [Mon, 20 Jun 2016 17:53:52 +0000 (10:53 -0700)]
Maintaining separate alpha for x and y translations

Bug: 29504823
Change-Id: I6150fec43653c8da4c5841ddbd6c5de739f205b8

8 years agoFixing workspace transition state
Hyunyoung Song [Mon, 20 Jun 2016 16:59:28 +0000 (09:59 -0700)]
Fixing workspace transition state

Change-Id: I394d587aa84aefa174220380a6dfb25bad133fde

8 years agoMoving LauncherAccessibilityDelegate to Launcher to associate it with
Sunny Goyal [Fri, 17 Jun 2016 15:43:56 +0000 (08:43 -0700)]
Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.

Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a

8 years agoAdding a flag (enabled by default) to remove the all-apps button.
Sunny Goyal [Wed, 15 Jun 2016 22:42:29 +0000 (15:42 -0700)]
Adding a flag (enabled by default) to remove the all-apps button.

All apps can still be opened by clicking the caret.

Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779

8 years agoMerge "Adding a DB update path to handle the QSB position change" into ub-launcher3...
Sunny Goyal [Thu, 16 Jun 2016 19:34:19 +0000 (19:34 +0000)]
Merge "Adding a DB update path to handle the QSB position change" into ub-launcher3-calgary

8 years agoUI fixes to All apps pull up work
Hyunyoung Song [Wed, 15 Jun 2016 23:45:48 +0000 (16:45 -0700)]
UI fixes to All apps pull up work

b/28917826
- nav bar change to light when top of the all apps container
passes y mid point of the status bar
- apps search edit box change when top of the all apps passes
the bottom of nav bar
- Restrict pull up to work only if the ACTION_DOWN event started
from the hotseat.
- Landscape: reverted old padding and margin. Only the interaction
is different.
- Tuning of the motion spec
- Animation duration respects fling speed more agressively.
- and many more small bugs...

Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349

8 years agoFix the build.
Hyunyoung Song [Wed, 15 Jun 2016 20:25:01 +0000 (13:25 -0700)]
Fix the build.

Change-Id: I7cdfd2b276b53dbeb1d639a967753d0cc9d45d84

8 years agoAdd caret shaped all app pull up handle to page indicator.
Hyunyoung Song [Wed, 15 Jun 2016 19:51:30 +0000 (12:51 -0700)]
Add caret shaped all app pull up handle to page indicator.
b/28917826

> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp

Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3

8 years agoRemoving unnecessary object creation and double loop during
Sunny Goyal [Wed, 15 Jun 2016 17:11:30 +0000 (10:11 -0700)]
Removing unnecessary object creation and double loop during
getDescendantCoordRelativeToAncestor

Change-Id: I034db2282a8aaf129336a425338c6a80d6a3a073

8 years agoAdding a DB update path to handle the QSB position change
Sunny Goyal [Fri, 10 Jun 2016 19:22:04 +0000 (12:22 -0700)]
Adding a DB update path to handle the QSB position change

> Renamed the id of 1st screen to 0 and making space for the QSB
by running the grid migration task.
> Added a feature flag to easily disable the QSB-in-workspace behavior

Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26

8 years agoMerge "Fixing bug in getDescendantCoordRelativeToParent where it was calculating...
Sunny Goyal [Wed, 15 Jun 2016 00:34:47 +0000 (00:34 +0000)]
Merge "Fixing bug in getDescendantCoordRelativeToParent where it was calculating the coordinates relative to the root's parent" into ub-launcher3-calgary

8 years agoFixing bug in getDescendantCoordRelativeToParent where it was
Sunny Goyal [Mon, 13 Jun 2016 23:36:59 +0000 (16:36 -0700)]
Fixing bug in getDescendantCoordRelativeToParent where it was
calculating the coordinates relative to the root's parent

The bug went unnoticed for so long, as its only used in DragLayer
which is positioned at 0,0 in its parent

Change-Id: I101cda1f1fa919c0faf9b23b1eeb05764bdf1a40

8 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 14 Jun 2016 06:57:41 +0000 (23:57 -0700)]
Import translations. DO NOT MERGE

Change-Id: I32411e1060a5383212672e414bad21ece14c6231
Auto-generated-cl: translation import

8 years agoMerge "Replacing overview panel icons with vector drawables" into ub-launcher3-calgary
Sunny Goyal [Mon, 13 Jun 2016 22:24:15 +0000 (22:24 +0000)]
Merge "Replacing overview panel icons with vector drawables" into ub-launcher3-calgary

8 years agoMerge "All apps container should not intercept touch during animation." into ub-launc...
Hyunyoung Song [Mon, 13 Jun 2016 19:40:35 +0000 (19:40 +0000)]
Merge "All apps container should not intercept touch during animation." into ub-launcher3-calgary

8 years agoAll apps container should not intercept touch during animation.
Hyunyoung Song [Mon, 13 Jun 2016 19:38:32 +0000 (12:38 -0700)]
All apps container should not intercept touch during animation.

b/28917826
> When all apps container is settling near either the bottom or top
end, touch event should not be intercepted.

Change-Id: I8aee6cea52e844c4615b92b15f8ef7247236a25b

8 years agoMerge "Making the security checks and policy changes only when launching custom short...
Sunny Goyal [Fri, 10 Jun 2016 20:49:15 +0000 (20:49 +0000)]
Merge "Making the security checks and policy changes only when launching custom shortcuts. This prevents launcher specific intents to unknowingly leak data." into ub-launcher3-calgary

8 years agoMaking the security checks and policy changes only when launching custom
Sunny Goyal [Tue, 31 May 2016 22:01:35 +0000 (15:01 -0700)]
Making the security checks and policy changes only when launching custom
shortcuts. This prevents launcher specific intents to unknowingly leak data.

Change-Id: I01343a9cee1f2a9a37a20aaf24e933e2771ecdbc

8 years agoFixes to touch handling in all apps pull up work
Hyunyoung Song [Fri, 10 Jun 2016 19:00:02 +0000 (12:00 -0700)]
Fixes to touch handling in all apps pull up work

b/28917826
- Fast scroll bar works even when it's at the top of the recycler view
- Pull down only happens ONLY IF the thumb of the scroll bar is at top
- When container is touched during sliding down animation,
translation should not jump

Change-Id: Ic1d9a4aa77332cc0a7582556f893053003224dd3

8 years agoUnifying the workspace translation logic
Sunny Goyal [Thu, 9 Jun 2016 19:08:22 +0000 (12:08 -0700)]
Unifying the workspace translation logic

Change-Id: I82430734c222d43222763fc6edcadac33dc3e076

8 years agoMerge "Executing the DB migration during startup instead of restore." into ub-launche...
Sunny Goyal [Thu, 9 Jun 2016 17:02:36 +0000 (17:02 +0000)]
Merge "Executing the DB migration during startup instead of restore." into ub-launcher3-calgary

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 9 Jun 2016 07:27:53 +0000 (00:27 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib1042efbc531203100b43bc32bf17ca3c05eca48
Auto-generated-cl: translation import

8 years agoFixes to all apps pull up work
Hyunyoung Song [Wed, 8 Jun 2016 23:29:32 +0000 (16:29 -0700)]
Fixes to all apps pull up work

b/28917826

- 2+ workspace page also slides up
- pull up touch interaction doesn't trigger only when yslop > xslop
- animation duration should be set independently when all apps button is used.
- workspace state is correctly set (drag and drop from the trays work)
- after lock screen, hotseat is positioned correctly
- Remove initial jump when sliding up
- Improved tuning on sliding
- Alpha value set differently on backbround and content of all apps

Still not fixed:
- Landscape
- Search edit text box styling
- All apps scroll bar

Change-Id: I817094b0f1ada5052ee604539459f556a99cadf1

8 years agoExecuting the DB migration during startup instead of restore.
Sunny Goyal [Tue, 24 May 2016 18:30:14 +0000 (11:30 -0700)]
Executing the DB migration during startup instead of restore.

This allows proper execution of DB.onUpgrade task if the app updates
after the restore

Change-Id: I4c40167b30e1d7040b3a38be70d834f7b215e540

8 years agoMerge "Updating the app search buton text" into ub-launcher3-calgary
Sunny Goyal [Wed, 8 Jun 2016 22:35:31 +0000 (22:35 +0000)]
Merge "Updating the app search buton text" into ub-launcher3-calgary

8 years agoMerge "Unifying focus indicator handling for workspace and all-apps" into ub-launcher...
Sunny Goyal [Wed, 8 Jun 2016 22:27:08 +0000 (22:27 +0000)]
Merge "Unifying focus indicator handling for workspace and all-apps" into ub-launcher3-calgary

8 years agoWhen the active page changes, simulate a scroll change.
Sunny Goyal [Mon, 6 Jun 2016 21:20:22 +0000 (14:20 -0700)]
When the active page changes, simulate a scroll change.
This prevents the animation progess from going out of sync of the
active page, when the active page changes before the total number of
pages change

Bug: 29113836
Change-Id: I2b12ea29d64dc98d773e6060de4b655d3f975b5a

8 years agoUnifying focus indicator handling for workspace and all-apps
Sunny Goyal [Tue, 10 May 2016 03:43:21 +0000 (20:43 -0700)]
Unifying focus indicator handling for workspace and all-apps

Adding an abstract FocusIndicatorHelper based on FocusIndicatorView
which draws the background instead of using a dummy view.

Change-Id: Id560195323d2ddad8fcd77ba675cf3f4fd4a94ab

8 years agoFixing crash on Lollipop
Sunny Goyal [Wed, 8 Jun 2016 19:00:02 +0000 (12:00 -0700)]
Fixing crash on Lollipop

Fragment.getContext is available from MNC onwards.
Using getActivity instead

Change-Id: I99ef98947879ff165895fc76facb438cd4b8b414

8 years agoMerge "Adding support for workspace state change listener" into ub-launcher3-calgary
Sunny Goyal [Wed, 8 Jun 2016 17:02:57 +0000 (17:02 +0000)]
Merge "Adding support for workspace state change listener" into ub-launcher3-calgary

8 years agoAdding support for workspace state change listener
Sunny Goyal [Tue, 7 Jun 2016 23:21:03 +0000 (16:21 -0700)]
Adding support for workspace state change listener

Change-Id: Id0a4bcf345ce928544f5d406f37252a00d1dc7af

8 years agoMerge "Fix NexusLauncher NPE" into ub-launcher3-calgary
Hyunyoung Song [Tue, 7 Jun 2016 22:46:33 +0000 (22:46 +0000)]
Merge "Fix NexusLauncher NPE" into ub-launcher3-calgary

8 years agoFix NexusLauncher NPE
Hyunyoung Song [Tue, 7 Jun 2016 22:37:51 +0000 (15:37 -0700)]
Fix NexusLauncher NPE

Change-Id: Ieb1144487841d7ea4ae880bf8e6c2334a2145e7e

8 years agoMerge "Ensure that custom actions are available to all apps items" into ub-launcher3...
Adam Cohen [Tue, 7 Jun 2016 22:08:05 +0000 (22:08 +0000)]
Merge "Ensure that custom actions are available to all apps items" into ub-launcher3-calgary

8 years agoEnsure that custom actions are available to all apps items
Adam Cohen [Tue, 7 Jun 2016 21:30:10 +0000 (14:30 -0700)]
Ensure that custom actions are available to all apps items

-> When BubbleTextViews were being recycled, the RecyclerView was clearing the
   AccessibilityDelegate. Ensure that this is reset by the adapter when a
   BubbleTextView is reused.

issue 25948877

Change-Id: I95dd21bfdcd602a67925d1b8f06e6ca92d1d7203

8 years agoMerge "Fixing FileLogs tests" into ub-launcher3-calgary
Sunny Goyal [Tue, 7 Jun 2016 21:06:05 +0000 (21:06 +0000)]
Merge "Fixing FileLogs tests" into ub-launcher3-calgary