Commit Graph
33301 Commits
Author SHA1 Message Date
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
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
android-build-team Robot b0e67a2079 Snap for 4380820 from 4c2a16c2dd to pi-release
Change-Id: I36fcacd297b51b97c6ff2804670183a2c2d6d1f6
2017-10-06 08:07:23 +00: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
Tony Wickham 830578ff22 Cancel notification group summary when all children are cancelled.
This requires maintaining notification group information by mapping
groupKey's to the summary key and child keys.

Bug: 65100024
Change-Id: Idd352ce5e243a0762bf30a9c79d36681456a1b17
2017-10-05 21:12:20 +00:00
TreeHugger Robot a9e345f886 Merge "Removing some methods from the DragSource" into ub-launcher3-master 2017-10-05 17:20:58 +00:00
Sunny Goyal 213b916ff0 Merge "Moving widget reinflation to push model" into ub-launcher3-master 2017-10-05 17:16:49 +00:00
TreeHugger Robot c4cbd7d978 Merge "Removing predicted apps reset on every onResume" into ub-launcher3-master 2017-10-05 17:01:48 +00:00
Sunny Goyal ba47faae6a Moving widget reinflation to push model
Instead of checking every widget, a widget which needs reinflation
would post a callback on launcher avoiding unnecessary loops in onResume

Bug: 67305604
Change-Id: I53e08d6f4795f7b716a9debca5c0c68dd25a7afe
2017-10-05 09:58:13 -07:00
TreeHugger Robot 8e35dbb2ed Merge "Moving the wallpaper offset interpolator to background thread" into ub-launcher3-master 2017-10-05 15:47:51 +00:00
Sunny Goyal d0c3d3a53c Moving the wallpaper offset interpolator to background thread
Bug: 67305604
Bug: 25321240
Change-Id: I2d667a4d1a4b91ec2a11e5e171f8a1d1c4222b33
2017-10-05 08:35:05 -07:00
Jon Miranda f1eae802b5 Fix bug where labels were visible in hotseat / invisible in workspace.
Bug: 67364623
Change-Id: Ib66a5cdaca767fd8546f4ffd02d590981bb8135a
2017-10-04 11:23:33 -07:00
Sunny Goyal d0d0703399 Removing predicted apps reset on every onResume
Predicted apps should be pushed by the called whenever they change
instead of Launcher polling them on every UI update.

Bug: 67305604
Change-Id: Ibd3d809b09b7d8fd39036f69367e8580fb90dcef
2017-10-04 10:41:43 -07:00
Jon Miranda 4c2a16c2dd Merge branch 'ub-launcher3-dorval-polish2' into 1003 am: a328a0d83a
am: 1df303950e

Change-Id: I3a94e6fbf5cfe4fd75d257cfe08e72bdb47acde7
2017-10-04 16:51:20 +00:00
Jon Miranda 1df303950e Merge branch 'ub-launcher3-dorval-polish2' into 1003
am: a328a0d83a

Change-Id: Ia2e6a6cf4c84fbb0ecae615c7e91b43e3d0bf50e
2017-10-04 16:45:44 +00:00
Sunny Goyal 1ce9c476f7 Removing some methods from the DragSource
This makes is easier to create new DragSource and sets up
proper default values in DragOptions

Change-Id: I6cb0b1df41b9730cf29f785fe85fe7f0b573ee3a
2017-10-03 16:18:46 -07:00
TreeHugger Robot 0474222c25 Merge "Removing buildLayer call on workspace pages." into ub-launcher3-master 2017-10-03 22:39:49 +00:00
Jon Miranda a328a0d83a Merge branch 'ub-launcher3-dorval-polish2' into 1003
Bug: 64937210
Test: flashed img
Change-Id: Icec6e9642627fbb406561e64326864d8ca3cd24d
2017-10-03 17:45:05 -04:00
TreeHugger Robot e050182544 Merge changes from topic "am-a465be7a-460d-4d89-9018-8c0df96ff268" into ub-launcher3-master
* changes:
  [automerger] Larger icons for L3Go and spacing changes. am: 846455e1ff
  Larger icons for L3Go and spacing changes.
2017-10-03 21:34:52 +00:00
TreeHugger Robot 8838b8e0e5 Merge "Removing extraction service and palette api dependency" into ub-launcher3-master 2017-10-03 20:56:02 +00:00
Android Build Merger (Role) 8c23068b7c [automerger] Larger icons for L3Go and spacing changes. am: 846455e1ff
Change-Id: Iec2b04651788abaa3abb8a1b295a7f5eb1f92355
2017-10-03 18:27:55 +00:00
Jon Miranda 846455e1ff Larger icons for L3Go and spacing changes.
There are cases (ie. smaller devices) where the icon label is closer
to the icon below it (rather than its corresponding icon).

To fix this, we ensure that the drawable padding (space between the
icon and its label) is no larger than the vertical padding of the cell.

Bug: 67317867
Change-Id: Ic3729726eebb60b67d658361c4335e724b7d68d7
2017-10-03 11:23:05 -07:00