Commit Graph

34630 Commits

Author SHA1 Message Date
Jon Miranda 48043ee0d6 Also reset mBadgeScale to 0 when recycling view.
When left as 1f, the drawBadgeIfNecessary thinks that there
is still a badge -- which results in a NPE when trying to draw
the badge.

Bug: 68324671
Change-Id: I4eedb5825b3a6429c99de0466a77d368a39b1951
2017-11-01 16:01:13 -07:00
Sunny Goyal 74bbdebbe4 Merge "Using state animation to control all-apps transition" into ub-launcher3-master 2017-10-31 22:38:51 +00:00
Sunny Goyal 031022029b Using state animation to control all-apps transition
> Separating all-apps transtions control and vertical shift touch handling
> Creating separate spring handler for search box (to avoid adding and removing spring)
> Driving all-apps vertical shift using state AnimatorSet

Bug: 67678570
Change-Id: I3b6a4d1f43275a5f485b399444742b6b9a8c4bb9
2017-10-31 15:29:02 -07:00
Sunny Goyal 076839c321 Moving various runtime flags into the common base class.
Caching the ststemApp status for workspace shortcuts.

Change-Id: I25663e1f04a9768afcca000294adcbb00ea1db7b
2017-10-31 11:00:28 -07:00
Sunny Goyal 9d341964a0 Setting up build rules and placeholder code for QuickStep
Change-Id: Ib4ad5c6082b293fc9f9455d70e2b21462b4ab76d
2017-10-30 10:04:24 -07:00
Sunny Goyal 0ab09fcf7b Deleting sample code demonstrating how to extend Launcher3
Launcher already includes Launcher3Go build flavour and we will
be adding another build flavour for RecentsUI. There is no need
to maintain another build which is not used anywhere.

Change-Id: I9287f62691d57750460ccc9d6859c7fa11c99956
2017-10-30 09:28:03 -07:00
Sunny Goyal 4d49f9a8ac Removing animated caret drawable
> Both landscape and portrait UI will show a static drag handle
> In landscape the handle is drawn below the all-apps scrim,
  while in portrait it moves with the hotseat

Change-Id: Ia6964c6f98feb8ba90517e23667d8c68bc2f6d35
2017-10-27 02:44:49 +00:00
TreeHugger Robot 4fc994c988 Merge "Consolidating various interpolators" into ub-launcher3-master 2017-10-27 02:35:30 +00:00
Sunny Goyal 5bc6b6f14c Consolidating various interpolators
Change-Id: I9588eee3552001b162a1e8d5ccefcfb44d221880
2017-10-26 16:38:55 -07:00
TreeHugger Robot c01cb4745a Merge "Moving mState from Workspace to StateManager" into ub-launcher3-master 2017-10-26 23:30:54 +00:00
TreeHugger Robot d4ece005e4 Merge changes from topic "am-5f0a0fef-5aba-4af5-b148-430430ddfffb" into ub-launcher3-master
* changes:
  [automerger] Fix bug where recycled BubbleTextView kept their badges. am: 5254944a68
  Fix bug where recycled BubbleTextView kept their badges.
2017-10-26 22:21:04 +00:00
Sunny Goyal 7268ed6c27 Merge "Caching the uninstall disabled state for each userHandle" into ub-launcher3-master 2017-10-26 21:07:42 +00:00
Android Build Merger (Role) 232d7196fa [automerger] Fix bug where recycled BubbleTextView kept their badges. am: 5254944a68
Change-Id: Icb486e7a529aae15d5f959487c489ef1ad5798b1
2017-10-26 18:35:10 +00:00
Jon Miranda 5254944a68 Fix bug where recycled BubbleTextView kept their badges.
Bug: 68324671
Change-Id: Id5f4db6706afd002242d95d44422fc61042798c8
2017-10-26 11:34:55 -07:00
Sunny Goyal b871c13ee3 Adding a compat implementation for playback control on AnimatorSet
Change-Id: I9f01fc319341cf2499fffb59521d32c2c81eba45
2017-10-26 10:18:41 -07:00
Sunny Goyal ea60926c3f Moving mState from Workspace to StateManager
Bug: 67678570
Change-Id: I8cdab044d0760fcc4c188830cde4f963d072b907
2017-10-25 15:48:01 -07:00
Sunny Goyal 3e3f44c3ad Exposing the state manager directly instead of providing various helper methods for state change
Bug: 67678570
Change-Id: If3d05c804c034ffa5e403da8eaa23e85e373c863
2017-10-25 13:41:13 -07:00
Sunny Goyal 0236d0b0ba Caching the uninstall disabled state for each userHandle
> Removing static access to varios drop targets
> Creating a cache at UI level with 5sec timeout

Bug: 67104426
Change-Id: Ide6e2e0c01606f9b5fb9281f95dc009873c18fb9
2017-10-24 14:55:54 -07:00
Sunny Goyal 4d519f2568 Enable overview state restore
> Reapplying CellLayout state when new pages are added (page bind comes after restore)
> Removing support for different scroll range for freescroll (the calculations were not
  consistant with maxScroll)

Bug: 67678570
Change-Id: Ic1911de1b707f2f6940e7040f07ca7e733e2ef2a
2017-10-24 10:39:24 -07:00
Sunny Goyal be93f264d7 Moving all-apps state logic to an independent class
Unifying all the paths for state change to a single flow

Bug: 67678570
Change-Id: I0773c0f59ae1ef324c507bc1aae188d8c059dea4
2017-10-23 16:33:58 -07:00
Sunny Goyal 2104c3025a Fixing mNewScale was never getting initialized
Change-Id: I03507cedc65a805d122ab2161a0162c21ac5975f
2017-10-23 15:04:32 -07:00
Sunny Goyal c99cb174c3 Moving some state specific logic to subclass of LauncherState
Bug: 67678570
Change-Id: I1316f91c9f19bd572e4a0da67a22fa8921e1dcf9
2017-10-20 13:56:47 -07:00
TreeHugger Robot cac861068e Merge "Log time spent on different UI surfaces" into ub-launcher3-master 2017-10-19 22:23:01 +00:00
Hyunyoung Song 7fb3ccc4a5 Log time spent on different UI surfaces
- When swipe happens on worskpace, elapsed container ms is reset
- Fling DOWN is also logged so that we now know how much time was spent on
  all apps screen
- If screen off or power button trigger onPause, log this event.

Bug: 67745115
Change-Id: Ie3a0090c78195a4a028de9935131e9e034dcf48a
2017-10-19 15:15:02 -07:00
TreeHugger Robot bce7f73f49 Merge "Deteriorating PinchToZoom interaction" into ub-launcher3-master 2017-10-19 22:06:54 +00:00
Sunny Goyal d79dd20e88 Deteriorating PinchToZoom interaction
Instead of using a custom animation, simply using the LauncherStateTransition
animation to control the transition. This keeps the state transitions sane.

Bug: 65598794
Bug: 67678570
Change-Id: Id1be0ca98b6a0ecf9ab7feadb23408cbef526d0e
2017-10-19 14:58:18 -07:00
Sunny Goyal cd7c0aad5f Changing LauncherState to a class to allow adding custom functionality
Bug: 67678570
Change-Id: I777e335e9fdf7014b041addff6b8e54fb94167bb
2017-10-19 12:37:11 -07:00
Sunny Goyal f9403d92fa Removing state definition from Launcher
State is only maintained is workspace and is used for all the UI

Bug: 67678570
Change-Id: Ie3cce5a1f4ada3913d0480f7918c27460dacbd34
2017-10-18 15:04:22 -07:00
Sunny Goyal 4c7f215651 Moving Workspace states into a separate file
Bug: 67678570
Change-Id: I5c63b4df29ca0f58a0223fb1919abc132576a1b6
2017-10-18 09:17:43 -07:00
Sunny Goyal 910be3c05d Merge "Launcher state management cleanup" into ub-launcher3-master 2017-10-17 20:47:25 +00:00
Sunny Goyal aeb1643ec6 Launcher state management cleanup
> Removing Widgets and related states
> Fixing different durations being used when opening/closing all-apps
> Removing some unnecessary object allocations when changing state without animation
> Differentiating widget bootm sheel and full sheet in logs

Bug: 67678570
Change-Id: Ic169528736d04ee0b38564b4f96595ba066eabda
2017-10-17 12:42:08 -07:00
TreeHugger Robot 155ad7f9bd Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-10-16 22:18:03 +00:00
TreeHugger Robot 2ff529a575 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish2 2017-10-16 22:16:11 +00:00
Bill Yi a4ec5b45d3 Import translations. DO NOT MERGE
Change-Id: Id64734c3e855af2dc1fe94de1cf6635bd2741e29
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-10-16 14:26:10 -07:00
Android Build Merger (Role) 6ffa2310df [automerger skipped] Import translations. DO NOT MERGE skipped: e11adb57ac
Change-Id: Ib0cb60aacd85d216dde86a37e2cd6b516847ad41
2017-10-16 21:14:52 +00:00
Bill Yi e11adb57ac Import translations. DO NOT MERGE
Change-Id: I27e36b0aac568700f8278d2c5285eb7ed2c39fec
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-10-16 14:14:39 -07:00
Sunny Goyal 1797af41d1 Cleaning up drag state management.
When the drag is started, the UI automatically goes into spring loaded mode. On a successful
drop, it is the responsibility of the {@link DropTarget} to exit out of the spring loaded
mode. If the drop was cancelled for some reason, the UI will automatically exit out of this mode.

Bug: 34692289
Change-Id: Ic611739a43bb8d9279b587aaee3039326c143e8b
2017-10-16 13:06:52 -07:00
Sunny Goyal cbdfc598fa Merge "Converting widget panel into a floating view" into ub-launcher3-master 2017-10-16 01:03:08 +00:00
Sunny Goyal f1fbc3fbe7 Converting widget panel into a floating view
> The widget panel is only inflated when needed
> Using the swipe up/down interaction for widgets tray
> Removing additional view wrappers from all-apps
> Widget tray is preserved across activity recreation
> Launcher no longer has WIDGET state, the actual code around
  the states will be removed in a follow-up cl

Bug: 67678570
Bug: 67585158
Change-Id: Ia29a7c33ec81e6c53cc24e2906b7022b6f41755b
2017-10-13 18:47:54 -07:00
Tony Wickham 2069fe78c3 Merge "Handle null small icon" into ub-launcher3-dorval-polish2 2017-10-13 21:18:19 +00:00
Tony Wickham 5509465317 Merge changes from topic "am-cd88620d-8a17-4592-86c7-f98ff940a436" into ub-launcher3-master
* changes:
  [automerger] Handle null small icon am: 207f7d7f86
  Handle null small icon
2017-10-13 21:18:19 +00:00
android-build-team Robot 5fdfc3529a Snap for 4393550 from 606f54a157 to pi-release
Change-Id: I7877d438b38c7acf56c86e0d2080e98cf1bd26e6
2017-10-13 08:04:12 +00:00
Jon Miranda 606f54a157 Merge branch 'ub-launcher3-dorval-polish2' am: ea6d0e631e
am: 2580bd6783

Change-Id: If8816b1381769b9a8e8690647548ceb7a301ccce
2017-10-12 00:21:32 +00:00
Jon Miranda 2580bd6783 Merge branch 'ub-launcher3-dorval-polish2'
am: ea6d0e631e

Change-Id: Iad151c917d51a5d90f7f3baddc76974fc44ee4ff
2017-10-12 00:04:58 +00:00
Sunny Goyal 10a1bd0e65 Converting PopupContainerWithArrow into a base class so that it is easier
to create other types of popup

Bug: 67585158
Change-Id: I966ae7bb90f941951b26feaf71b3ea30c3f3c0cc
2017-10-10 10:28:05 -07:00
Jon Miranda ea6d0e631e Merge branch 'ub-launcher3-dorval-polish2'
Bug: 64937210
Test: flashed img
Change-Id: I62116a7e4d105eeeeae25a86cfb07d61586c4ab2
2017-10-09 15:44:54 -04:00
Android Build Merger (Role) d4899cfc2f [automerger] Handle null small icon am: 207f7d7f86
Change-Id: I2003fe3d654829f8a2d1d16a38213cf5a262650f
2017-10-06 21:03:28 +00:00
Tony 207f7d7f86 Handle null small icon
It shouldn't be possible to have a null small icon, but apparently
there are cases where we get one anyway. Might as well handle it
gracefully instead of crashing.

Bug: 67156108
Change-Id: I01ad0251920f7f531a3019eb694946c3d295f9de
2017-10-06 14:03:09 -07:00
Jonathan Miranda 6a816b007c Merge "Fix bug where labels were visible in hotseat / invisible in workspace." into ub-launcher3-dorval-polish2 2017-10-06 19:41:53 +00:00
Jonathan Miranda 271e219ea3 Merge changes from topic "am-01ff3d34-0eea-44d5-99f7-af2df518afb2" into ub-launcher3-master
* changes:
  [automerger] Fix bug where labels were visible in hotseat / invisible in workspace. am: f1eae802b5
  Fix bug where labels were visible in hotseat / invisible in workspace.
2017-10-06 19:41:53 +00:00