Commit Graph

7290 Commits

Author SHA1 Message Date
Android Build Merger (Role) 31a07c9340 [automerger] Also reset mBadgeScale to 0 when recycling view. am: 48043ee0d6
Change-Id: I45edb03913e7cad7f670be5e5331896c30662bcc
2017-11-01 23:01:31 +00:00
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 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 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
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
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
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
Sunny Goyal 00c95b8447 Removing some obsolete callbacks
Change-Id: I3cf19a13ff145923f2973e23c24033f196324aa3
2017-10-06 11:56:01 -07:00
TreeHugger Robot 4670ff6e26 Merge "Moving install queue updates to worker thread." into ub-launcher3-master 2017-10-06 18:34:22 +00:00
Sunny Goyal 91498abf75 Moving install queue updates to worker thread.
This avoids acquiring a lock for upating the sharedPrefs during onResume
as all the logic runs on a single thread.

Bug: 67305604
Change-Id: I1bbea382da9fafb403b4e9508f393f78db28478d
2017-10-06 11:33:43 -07:00
TreeHugger Robot 6750836bd0 Merge "Merging duplicate logic for deferred drop handling in Worksace and Folder" into ub-launcher3-master 2017-10-06 17:00:40 +00:00
Sunny Goyal 3dce5f3f50 Merging duplicate logic for deferred drop handling in Worksace and Folder
> All the logic is contained in UninstallDropTarget
> Also fixing a bug were mWaitingForResume was not cleared

Bug: 34692289
Change-Id: I617475ce53062902d6817954fb608198e6e03d3c
2017-10-06 09:07:36 -07:00
TreeHugger Robot 22b92df30f Merge "Instead of posponing state change until onResume, applying the state change directly in onCreate and onNewIntent()" into ub-launcher3-master 2017-10-05 22:30:00 +00:00
TreeHugger Robot 878b5efaa3 Merge "Polish animation when icon returns to Folder." into ub-launcher3-master 2017-10-05 22:12:03 +00:00
TreeHugger Robot 661e558321 Merge "Removing unnecessary layout pass happening due when chaning gradientView visibility" into ub-launcher3-master 2017-10-05 22:09:24 +00:00
Sunny Goyal 53b993688f Instead of posponing state change until onResume, applying the state
change directly in onCreate and onNewIntent()

> State UI do not depend on view measurement and each state is able
to adapt itself based on measure/layout. We do not need to wait for
first layout pass before chaning the state.

Bug: 67305604
Change-Id: I8906e3245cc07aac0038fe630e2a16875d4e8949
2017-10-05 15:06:31 -07:00
Android Build Merger (Role) c51a2964fb [automerger] Fix bug where labels were visible in hotseat / invisible in workspace. am: f1eae802b5
Change-Id: If4155798256c6b806f6f89ef441df6e0f49b4e39
2017-10-05 21:23:57 +00:00