Commit Graph

12033 Commits

Author SHA1 Message Date
Sunny Goyal 28a64381b6 Fixing text search where a word starting with lower case was
not being matched

Bug: 32249413
Change-Id: I0f5e24052759a734fe0df3bd3d0bf2e7ef7f2713
2016-10-19 07:54:22 +01:00
Sunny Goyal a833b6d720 Missing call in write to parcel
Bug: 17924700
Change-Id: Ie48757fc53674979b8e92f96b5281f965e2ef3b4
2016-10-18 08:51:22 +01:00
Sunny Goyal f4b457709f Removing the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS
Launcher does not use any panels which need closing & system sends an
onActivityResult(RESULT_CANCELLED), we do  not need special handling for
waitingForResult

Bug: 32127718
Change-Id: Iff5161444bc909442f6acbe52cb3fb5a2d9ae4da
2016-10-18 00:17:54 +01:00
Bill Yi 3cca5a0cae Import translations. DO NOT MERGE
Change-Id: I93bb668512491ac8c026e8a75b8a50b0252965d4
Auto-generated-cl: translation import
2016-10-13 16:56:31 -07:00
Tony Wickham 1d29c6f7d2 Merge "Add feature flag to disable light status bar" into ub-launcher3-calgary-polish 2016-10-13 00:41:57 +00:00
Tony Wickham 0fed55bf03 Add feature flag to disable light status bar
Bug: 32085545
Change-Id: I4860145b00893c20f7e37817e9659ccd90409966
2016-10-12 16:14:36 -07:00
Tony Wickham cf6195268d Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3-calgary-polish 2016-10-12 21:22:05 +00:00
Sunny Goyal 3f8864069b Announcing the final action when the drag-drop completes
Bug:31926812
Change-Id: Id0566cc7dc15732981320807a02fb9cae8a885e6
2016-10-11 10:55:14 -07:00
Sunny Goyal 327f7b7125 Merge "Updating the folder cell dimensions to be closer to a square" into ub-launcher3-calgary-polish 2016-10-10 20:37:51 +00:00
Hyunyoung Song 215a2ea0e1 Merge "Set correct accessibility delegate for the overview mode. b/32004538" into ub-launcher3-calgary-polish 2016-10-07 21:48:19 +00:00
Hyunyoung Song eb205af09f Set correct accessibility delegate for the overview mode.
b/32004538

Change-Id: Ie68fe418b777784d747b004600ef1c98e96a4791
2016-10-07 14:19:30 -07:00
Sunny Goyal 68f240eb54 Updating the folder cell dimensions to be closer to a square
Bug: 31813976
Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
2016-10-07 13:36:56 -07:00
Tony 2fd0208605 Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
2016-10-07 12:50:01 -07:00
Sunny Goyal 81300a9f75 Merge "Using add/replace instead of update when updating an entry." into ub-launcher3-calgary-polish 2016-10-07 18:04:16 +00:00
Sunny Goyal caa52918f1 Using add/replace instead of update when updating an entry.
Update operation was not including version and updateTime columns
leading to a update operation getting called wheneven launcher loads.

Bug: 32004297
Change-Id: I5f1793633ce3bb72d5641a82502b3ba8b9cdff7d
2016-10-07 10:00:56 -07:00
Hyunyoung Song 1ee2db14e0 Bye bye swipe down search
b/31935141

Change-Id: I4ab6741baa4681358a8a234860179d2de4290fd7
2016-10-06 12:37:45 -07:00
Hyunyoung Song d8fcffb8fe Add user event logging for tap on search
b/31772967

Change-Id: I71ececb8195d46405623a8ae2a99d001088d9181
2016-10-03 14:01:25 -07:00
Hyunyoung Song 70a421e224 Merge "Consume ACTION_UP when fling is detected on top of icon" into ub-launcher3-calgary-polish 2016-09-30 23:21:05 +00:00
Hyunyoung Song 035a516e18 Consume ACTION_UP when fling is detected on top of icon
Bug: Adam found out that when you swipe down fast on an icon, you can
launch search AND launch an app. Only one should trigger and not both.

Change-Id: I66b9df26d8bb355f011d057dafd45f90f59b82ae
2016-09-30 16:13:55 -07:00
Hyunyoung Song 37ecabc88e Merge "Agressively change the color of the the all apps background during pull up b/30502942" into ub-launcher3-calgary-polish 2016-09-30 20:53:21 +00:00
Hyunyoung Song 81a56f9acc Agressively change the color of the the all apps background during pull up
b/30502942

Change-Id: Iea072d95ed4f62907b164b2c4ee75ad737eccb7a
2016-09-30 12:57:16 -07:00
TreeHugger Robot f7f41bd4fa Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-09-29 07:31:07 +00:00
Bill Yi 2b7b76c018 Import translations. DO NOT MERGE
Change-Id: I654a22df571448ce858325439e0d73a0d0bbe623
Auto-generated-cl: translation import
2016-09-28 21:50:56 -07:00
Tony Wickham f0fc3c4674 Merge "Some minor fixes for extracted status bar." into ub-launcher3-calgary-polish 2016-09-29 01:27:07 +00:00
Tony Wickham 345bff3ce6 Some minor fixes for extracted status bar.
- setLightStatusBar() is now updateStatusBar(), with a forceLight
  parameter. We set the status bar to be light if forceLight or
  shouldBeLightStatusBar() (based on wallpaper).
- Force status bar to be light if all apps is open.
- Default to dark status bar, not light (light == dark icons)

Bug: 29452834
Change-Id: I7b102ceff2f1ef2ab8defd4a46c698df4feaf2a5
2016-09-28 16:53:17 -07:00
Tony Wickham d5e1ca2d05 Merge "Decrease drop target left and right padding." into ub-launcher3-calgary-polish 2016-09-28 23:47:07 +00:00
Tony Wickham e0dab19c71 Decrease drop target left and right padding.
Otherwise it looks like we are aggressively truncating the
text even though there is plenty of room to show it.

Bug: 31790418
Change-Id: Ia1cdc232f05815732d4cb95b954e935724a200fd
2016-09-28 16:22:36 -07:00
Sunny Goyal 7bb7ead9f7 Merge "Fixing the newIntent logic to check the state before it has been reset." into ub-launcher3-calgary-polish 2016-09-28 22:57:56 +00:00
Tony Wickham 9311387a22 Enable light status bar when top of wallpaper is light.
(Light status bar = dark icons)

Bug: 29452834
Change-Id: I9f61a05d80158827761c8b62ab40fc50971e27a6
2016-09-28 14:16:11 -07:00
Sunny Goyal 85313735fa Fixing the newIntent logic to check the state before it has been reset.
When home button is pressed, we reset all active state (close all-apps,
folder, shortcuts menu). But we do not go to the default screen if the
active state was non-zero (any of the containers were open).

Change-Id: Ia9a06729d65767124471c5b793323a55d822210a
2016-09-28 12:42:55 -07:00
Hyunyoung Song ffad962092 Add user event logging for action on search box
b/31772967

Change-Id: Ide652ddfad931e392b21f5a2bbdf9f07729d0383
2016-09-27 18:07:00 -07:00
Sunny Goyal 1b7e9bc063 Merge "Removing reflection from AlphabeticIndexCompat" into ub-launcher3-calgary-polish 2016-09-27 17:03:34 +00:00
Sunny Goyal 70fea7877d Removing reflection from AlphabeticIndexCompat
Bug: 31596662
Change-Id: I23da4a9747daa3cee6cec961fc590d18bf05791a
2016-09-27 09:50:22 -07:00
TreeHugger Robot ef6c04633c Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-09-27 03:11:07 +00:00
Bill Yi eeb712f111 Import translations. DO NOT MERGE
Change-Id: I52c77c4ced9b7ebb7d00e1256ec9ed82de13a2ba
Auto-generated-cl: translation import
2016-09-26 07:22:30 -07:00
Tony 1cf412ca91 Don't attempt to add item back to folder when deferring drag.
Since the item hasn't yet been removed until the deferred drag
starts, adding it again will throw an exception (the view
already has a parent).

Bug: 30769920
Change-Id: Icb95aaa64e6e3c5dc105bbf3e54460b529d02033
2016-09-23 18:58:37 -07:00
Tony Wickham 6e74e899d3 Refactor shortcuts drag and drop.
- Instead of creating our own drag view within the container, and
  handling logic to determine when to start a real drag, we start
  the drag immediately and just defer onDragStart().
- To determine when the deferred drag should start, we add a
  DeferDragCondition to DragOptions. The default DeferDragCondition
  never defers a drag, but is overridden for apps with shortcuts
  to defer until the icon is dragged a given distance.
- Because the drag is handled in DragController, including checking
  when to start the deferred drag, DeepShortcutsContainer no longer
  needs to handle touch events and ShortcutsContainerListener has
  been removed.

This change has several immediate benefits:
- The code is much cleaner, because it allows touch handling to be
  done by the DragController through the normal drag flow, without
  recreating logic in ShortcutsContainerListener/DeepShortcutContainer.
- The janky second haptic feedback has been removed (now it vibrates
  when you long press, like everywhere else, but not again when the
  shortcuts close after dragging a distance).
- Drops are animated, instead of just popping the icon back into place.

Bug: 30769920
Bug: 30465972
Bug: 31533078
Change-Id: I679b412b72fbf6c3895d76963311eb5010c8e8db
2016-09-23 18:44:47 -07:00
Sunny Goyal 00341907b7 Removing center vertical from folder gravity.
Using center vertical alogn with a fixed height, overrides
the custom drawable padding and divides the available space
proportionally between padding and drawable padding

Change-Id: I4523543ab3007ef40eac69d878d2afbca13b483a
2016-09-23 10:23:20 -07:00
Tony Wickham c980735560 Merge "Stop jumping to workspace from hotseat on quick drop." into ub-launcher3-calgary-polish 2016-09-23 00:34:53 +00:00
Tony Wickham 39ce3d119b Merge "Remove shortcuts that no longer exist or are no longer pinned." into ub-launcher3-calgary-polish 2016-09-23 00:32:22 +00:00
Tony Wickham 7695e603bf Remove shortcuts that no longer exist or are no longer pinned.
(This change is in the onShortcutsChanged() callback.)

- Remove all workspace icons that correspond to shortcuts that
  are now unpinned
- Remove all workspace icons that have the same package and
  user handle as passed in onShortcutsChanged(), if they aren't
  included in the list of shortcuts that is also passed.

These cases will happen for static and dynamic shortcuts,
respectively, when an app's data is cleared.

Bug: 30316501
Change-Id: I50db6567cb318d087012ab5d8208e765b81c6f99
2016-09-22 16:54:57 -07:00
Tony Wickham e5a00c6172 Move shortcut fade interpolator outside of loop.
Change-Id: I64806897afcd1062dfbaefd6dca07f024f7346af
2016-09-22 13:01:46 -07:00
Tony Wickham 4d917a9793 Merge "Fade deep shorcuts in and out." into ub-launcher3-calgary-polish 2016-09-22 19:55:52 +00:00
Tony Wickham b318c0e396 Fade deep shorcuts in and out.
Animate open:
- Stagger-fade shortcuts as they open
- Become fully opaque before fully open, at which point the
  arrow animates in (scale). This way there is no overlap of
  a translucent shortcut over an opaque arrow.

Animate close:
- Stagger-fade shortcuts as they close
- Delay fade until arrow animation is finished, to ensure
  there is no overlapping of translucent and opaque.

This is much less visually jarring when quickly dragging
and dropping apps with shortcuts.

Bug: 31533078
Change-Id: I8673ee64e92414c718233ea89b70362187e53696
2016-09-22 12:50:58 -07:00
Hyunyoung Song f4502973cc Merge "Fixing two critical bugs in all apps transition controller" into ub-launcher3-calgary
am: b7d16b7e5c

Change-Id: I95a6bfc2247eb98d5c3758589989bcaf2657e072
2016-09-22 18:21:53 +00:00
Hyunyoung Song ea045e7532 Fixing two critical bugs in all apps transition controller
am: 0a9c092c89

Change-Id: I115b7bc6d165dc9d5e73e1878b96d194bfc62da7
2016-09-22 18:17:25 +00:00
Hyunyoung Song b7d16b7e5c Merge "Fixing two critical bugs in all apps transition controller" into ub-launcher3-calgary 2016-09-22 17:36:40 +00:00
TreeHugger Robot abb607fc9b Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-09-22 09:53:25 +00:00
Bill Yi 0fe66d46ae Import translations. DO NOT MERGE
Change-Id: Idd135c03ff2a6ff9d08ca6c4e9e5ec6ae1520efa
Auto-generated-cl: translation import
2016-09-22 00:17:47 -07:00
Hyunyoung Song 1c8c3c1f05 Merge "Make IME less sticky when launching a new app b/31382106" into ub-launcher3-calgary-polish 2016-09-22 00:10:56 +00:00