Commit Graph

78507 Commits

Author SHA1 Message Date
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 e5968ee90f Merge "Agressively change the color of the the all apps background during pull up b/30502942" into ub-launcher3-calgary-polish
am: 37ecabc88e

Change-Id: I9bd651924636488451e000d805eda3113e334932
2016-09-30 20:57:21 +00:00
Hyunyoung Song 029e8b2e3e Agressively change the color of the the all apps background during pull up b/30502942
am: 81a56f9acc

Change-Id: I0f3bd04b2bb69dbeb2f4578c74fdbfa5b34c0e8b
2016-09-30 20:57:20 +00: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
Sunny Goyal b57c893db8 Removing some TODOs with proper system API
Change-Id: I0d0e667cd6af8a7b9dbf3d0fd417f009ae402519
2016-09-30 12:19:13 -07:00
Sunny Goyal 1acc56a4eb Moving the widget auto-advance logic to AppWidgetHostView instead of
handling it in launcher

This fixes the bug where launcher ignores auto-advance property changes
during app update or widget remote views update as well as simplifies
widget management

On potential downside of this refactoring is that the auto advance will
keep running even when all-apps or widgets tray is open. We could
eventually use onVisibilityAggregated to handle visibility changes,
but currenly the workspace visibility is not being updated properly
in these cases

Change-Id: Ie7331fec1877f43ad23e634d37571d8f3ef51e59
2016-09-30 11:18:38 -07:00
Bill Yi de45283519 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish
am: f7f41bd4fa  -s ours

Change-Id: Ia9a560e703630cc152ea32c667b49b37a7caee5b
2016-09-29 07:39:42 +00:00
Bill Yi dd592da88f Import translations. DO NOT MERGE
am: 2b7b76c018  -s ours

Change-Id: I834461c358294cc7c6e04cc53b0c04804af799be
2016-09-29 07:39:42 +00:00
TreeHugger Robot f7f41bd4fa Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-09-29 07:31:07 +00:00
TreeHugger Robot 8c9aa3c15a Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-09-29 07:30:45 +00:00
Bill Yi 09146cade4 Import translations. DO NOT MERGE
Change-Id: Ie8f3d7887e173108cb485370443068a0a346134a
Auto-generated-cl: translation import
2016-09-28 21:51:45 -07: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 75ad10366d Merge "Some minor fixes for extracted status bar." into ub-launcher3-calgary-polish
am: f0fc3c4674

Change-Id: I965c225ab3ab0062c2176af933e019e77011a745
2016-09-29 01:36:19 +00:00
Tony Wickham 9b80528d44 Some minor fixes for extracted status bar.
am: 345bff3ce6

Change-Id: I3a9e57fb93124b1d462b0fb8173419b887e85a84
2016-09-29 01:36:18 +00: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 31d75d2e13 Merge "Decrease drop target left and right padding." into ub-launcher3-calgary-polish
am: d5e1ca2d05

Change-Id: I576f05f943df3b9aaf5e318d9d8afe7f54591a61
2016-09-28 23:53:42 +00:00
Tony Wickham 32b838e652 Decrease drop target left and right padding.
am: e0dab19c71

Change-Id: If9c1fcaa99fb9e41eefa61895752f1a7558c29bf
2016-09-28 23:53:41 +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 e03dbf5039 Merge "Fixing the newIntent logic to check the state before it has been reset." into ub-launcher3-calgary-polish
am: 7bb7ead9f7

Change-Id: Ic98c407acb2d0816ea18e2930e137eaa32d6a1e6
2016-09-28 23:01:38 +00:00
Sunny Goyal 60bf18876f Fixing the newIntent logic to check the state before it has been reset.
am: 85313735fa

Change-Id: I3a43a49c467a750adb031df4c3b880d453116739
2016-09-28 23:01:38 +00: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 0bc9e98d78 resolve merge conflicts of 9311387 to ub-launcher3-master
Change-Id: I449cd2c91c2906f04ebf844eab2d02befaeb2f4d
2016-09-28 14:40:28 -07: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
Sunny Goyal 02aa0e4792 Merge "Cleaning up restore instance state logic" into ub-launcher3-master 2016-09-28 19:10:26 +00:00
Sunny Goyal fe770c9feb Cleaning up restore instance state logic
Restore instance state is only used for first binding. But in case of restore,
the binding happens synchronously, so there is not need to store the bundle
in a global variable

Change-Id: Ibc496bcd7c0d171056b8afc69f2c4d9a1270d40c
2016-09-28 11:35:13 -07:00
Hyunyoung Song 8866ccf510 Add user event logging for action on search box b/31772967
am: ffad962092

Change-Id: Ifb7364bc68bd4021e85241c793b223514e214f42
2016-09-28 02:54:19 +00: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 e2b9696023 Merge "Removing reflection from AlphabeticIndexCompat" into ub-launcher3-calgary-polish
am: 1b7e9bc063

Change-Id: I22f83a9850f63a1a2bb00becd7fd1ce2610a2ab9
2016-09-27 17:11:10 +00:00
Sunny Goyal a6f69d0ffa Removing reflection from AlphabeticIndexCompat
am: 70fea7877d

Change-Id: I9e07b178e6911079e8575397167cc0e30aaa4aeb
2016-09-27 17:11:10 +00: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
Bill Yi 7f17f6f9f4 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish
am: ef6c04633c  -s ours

Change-Id: I64c1545e8fcc4fd1b88f1d31f045a151cc9e0704
2016-09-27 03:25:19 +00:00
Bill Yi ce08a26133 Import translations. DO NOT MERGE
am: eeb712f111  -s ours

Change-Id: Idc91e3b0e07c511aa6ddb15afe910a8d64421e23
2016-09-27 03:25:18 +00:00
TreeHugger Robot ef6c04633c Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-09-27 03:11:07 +00:00
TreeHugger Robot 1b1d05e0a4 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-09-27 03:10:36 +00:00
Jonathan Miranda aff85503f0 Merge "Ignore long clicks triggered from the edge of screen." into ub-launcher3-master 2016-09-27 02:43:53 +00:00
Jon Miranda aca2145f2a Restore AllAppsContainerView UI to match spec.
Did some refactoring with Sunny's help.

Change-Id: Ie4c90c316f1e381829836e11c83eaaedfed4d621
2016-09-26 16:45:10 -07:00
Jon Miranda 379198ef5b Ignore long clicks triggered from the edge of screen.
Bug: 31572404
Change-Id: Ie531941669549ce84b92302b95be94555ee0bb73
2016-09-26 16:37:59 -07:00
Tony 8c855cb8c0 Don't attempt to add item back to folder when deferring drag.
am: 1cf412ca91

Change-Id: Ic8bf5568b9811558bf20fac721b17dfa80803e8a
2016-09-26 20:59:51 +00:00
Bill Yi d0d1356f7b Import translations. DO NOT MERGE
Change-Id: I3d2522be78fb84923918d056b22fa00d2ee612f8
Auto-generated-cl: translation import
2016-09-26 07:23:20 -07: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 5eea1e89dd resolve merge conflicts of 6e74e89 to ub-launcher3-master
Change-Id: I34e449ca3a91ee06e1983ac3a83cb7ca53567a91
2016-09-23 19:43:35 -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
Jonathan Miranda 20eedeb5ae Merge "Move handling touch logic from AllAppsContainerView to BaseContainerView." into ub-launcher3-master 2016-09-23 23:44:31 +00:00