Commit Graph

18591 Commits

Author SHA1 Message Date
TreeHugger Robot b06a2a6ccc Merge "Fix views not being visible on Recents Go." into ub-launcher3-master 2019-04-17 00:44:44 +00:00
TreeHugger Robot eeb8cdd87a Merge "Smarter task laying out based off onMeasure" into ub-launcher3-master 2019-04-17 00:24:36 +00:00
Kevin c98f116b77 Smarter task laying out based off onMeasure
Previously laid out via calls to layoutParams. This isn't as optimized
as being baked into the measure + layout system and has the issue of
being less flexible. For example, if the device profile changes (e.g.
orientation change), we'd have to apply new layout params for all the
views. With this CL, we would only need to do this for top-level views
and the children will resolve themselves.

Bug: 114136250
Test: Check layout on marlin + walleye
Change-Id: Iddd503a8844bdde7724d3f804660da61719d5c90
2019-04-16 17:12:46 -07:00
Tony Wickham d8256e54e0 Merge "Don't special case swipe up animation if launcher was visible" into ub-launcher3-qt-dev
am: 3deb42f281

Change-Id: I9605fba44772a690c7ceae88962e227f9795081a
2019-04-16 14:50:24 -07:00
Tony Wickham 3deb42f281 Merge "Don't special case swipe up animation if launcher was visible" into ub-launcher3-qt-dev 2019-04-16 21:19:17 +00:00
Sunny Goyal 47dd148ffe Merge "ShortcutInfo renamed to WorkspaceItemInfo" into ub-launcher3-qt-dev
am: 762d1fc64f

Change-Id: I3e6333f7df25f9244a03dc011ea205e393f7c92b
2019-04-16 13:07:19 -07:00
vadimt 31747c8c1f Fixing icon dragging
am: b3e2cd3d88

Change-Id: I979006064939699e82bf3b4bdcd34b2073124497
2019-04-16 13:06:42 -07:00
TreeHugger Robot 762d1fc64f Merge "ShortcutInfo renamed to WorkspaceItemInfo" into ub-launcher3-qt-dev 2019-04-16 19:47:30 +00:00
vadimt b3e2cd3d88 Fixing icon dragging
Bug: 129434166
Change-Id: Id2e5509dbfbdb76ec868ca6117c2a0c0d5233404
2019-04-16 11:25:22 -07:00
Tony Wickham 1e24b6d7d5 Don't special case swipe up animation if launcher was visible
This case originally existed to handle transparent activities, but in
reality it was hit most often when swiping up during transitions, i.e.
before launcher was stopped. So now we do the same thing regardless of
whether launcher was "visible" at the start of the animation: go to the
background state immediately and create our transition from there. This
looks a little strange if the activity truly is transparent, because you
can see launcher jump to the background state, but ultimately leads to a
more consistent experience (and the state animation we used before
looked super weird anyway).

Test:
- Open Calculator from the home screen and immediately swipe up from nav
  bar (before animation finishes)
- Open Calculator from overview and immediately swipe up from nav bar
- Open Caluclator from all apps and immediately swipe up from nav bar
- Open Cortana (which has a translucent activity) from home screen,
  then swipe up.
- Open Cortana and quick switch from it
- Open Rube screenshot (dialog activity) from home screen and swipe up
- Open Rube screenshot from all apps and swipe up
- Open Rube screenshot from all apps and swipe up and back down (ensure
  launcher returns to all apps state)

Change-Id: I87bdbc6ddf41971fd327c807269c0bd94c97c95c
2019-04-16 10:56:59 -07:00
Kevin cce954f334 Fix views not being visible on Recents Go.
If we bind the loading task views but then on the tasks being loaded
realize there are no items, it's possible to animate from the empty
content view to the regular content view and then back. Currently, this
leads to updateContentView not being called properly the second time
since both views are still visible during the animation, so this CL
fixes that and cancels any on-going crossfade animations.

Bug: 114136250
Fixes: 130580680
Test: Remove last item from recents, go to recents again, empty view
shown
Change-Id: If1a4caab15f9b6d7ccd3abbc06f5866e06650db8
2019-04-16 10:29:54 -07:00
TreeHugger Robot c4c800ff64 Merge "Change layout size to be dependent on device size" into ub-launcher3-master 2019-04-16 15:43:23 +00:00
Sunny Goyal 9589916418 ShortcutInfo renamed to WorkspaceItemInfo
Will get rid of ShortcutInfoCompat in a follow up cl

Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
2019-04-16 00:08:24 -07:00
Kevin c06522c826 Change layout size to be dependent on device size
This CL changes the layout sizes to be dependent on device height as
opposed to static values so that it works on different decides out of
the box.

Bug: 114136250
Test: Tested how layout looks on marlin_svelte and walleye
Change-Id: Ie000bc797d7dd2e38cd705d54f3e09c79e1a2176
2019-04-15 18:13:29 -07:00
Vadim Tryshev 260eaa05eb Merge "More improvements for wellbeing tests" into ub-launcher3-qt-dev
am: 1f457ae87f

Change-Id: I5cbbc96992638e7f56b785719054ed9ef981b1b2
2019-04-15 17:47:38 -07:00
Vadim Tryshev 1f457ae87f Merge "More improvements for wellbeing tests" into ub-launcher3-qt-dev 2019-04-16 00:30:44 +00:00
Hyunyoung Song eb36f1bbc4 Merge "Fix all apps tab font." into ub-launcher3-qt-dev
am: 139cd94820

Change-Id: I5dc414a788e7c945ff6b8270164767971fe9ea5c
2019-04-15 17:06:24 -07:00
TreeHugger Robot 139cd94820 Merge "Fix all apps tab font." into ub-launcher3-qt-dev 2019-04-15 23:57:43 +00:00
vadimt a42dc530ee More improvements for wellbeing tests
Change-Id: I3c5866660bfb96378cdc80c1afc70ec438fc9add
2019-04-15 16:50:12 -07:00
Jon Miranda a439792978 Merge "Fix bug where BubbleTextView text fades in after long press." into ub-launcher3-qt-dev
am: 0edbac1132

Change-Id: Id9cf4ccc5ebc2f852cd494d2c1dbe5dd11827f93
2019-04-15 13:57:57 -07:00
TreeHugger Robot 0edbac1132 Merge "Fix bug where BubbleTextView text fades in after long press." into ub-launcher3-qt-dev 2019-04-15 20:39:59 +00:00
Jon Miranda 83cdca67ba Fix bug where BubbleTextView text fades in after long press.
Introduced by Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93.

Change-Id: I45e180dda09f03297530e5b5575b71f60c03fb5f
2019-04-15 13:28:26 -07:00
Vadim Tryshev 10fed33306 Merge "More diagnostics for dragging failures in the lab, now for OOP tests" into ub-launcher3-qt-dev
am: 5235a8867b

Change-Id: If6621708174461f8146bf55a409aba59007e9194
2019-04-15 12:37:17 -07:00
Vadim Tryshev 5235a8867b Merge "More diagnostics for dragging failures in the lab, now for OOP tests" into ub-launcher3-qt-dev 2019-04-15 19:29:41 +00:00
vadimt 7d90c653d6 More diagnostics for dragging failures in the lab, now for OOP tests
Bug: 129434166
Change-Id: I38b62ef74c0307f12ee85bbc05940400e9ba2302
2019-04-15 12:10:50 -07:00
Vadim Tryshev 275aa73e40 Merge "Better diags in ensureWorkspaceIsScrollable" into ub-launcher3-qt-dev
am: d4eed0b191

Change-Id: I7f4f8f07ae556820575a2451d4b038cefad4ae15
2019-04-15 12:02:46 -07:00
Tony Wickham 609c144d1c Merge "Don't scale/translate hotseat icons if they are visible in overview" into ub-launcher3-qt-dev
am: 799f5cfe53

Change-Id: I82fae4da8af984d78db7afdfe06f9826ba28ced1
2019-04-15 12:02:10 -07:00
Vadim Tryshev d4eed0b191 Merge "Better diags in ensureWorkspaceIsScrollable" into ub-launcher3-qt-dev 2019-04-15 18:56:01 +00:00
Tony Wickham 799f5cfe53 Merge "Don't scale/translate hotseat icons if they are visible in overview" into ub-launcher3-qt-dev 2019-04-15 18:37:29 +00:00
vadimt 79fa370389 Better diags in ensureWorkspaceIsScrollable
Bug: 128531133
Change-Id: Ie396e985ddcbe1bf131ed1ccd38431a555fb2014
2019-04-15 11:36:49 -07:00
Hyunyoung Song fbd77f6881 Fix all apps tab font.
Bug: 128857973

Change-Id: Ib3121194e591282cf9b8b96e6eb953da996d99cd
2019-04-15 18:11:34 +00:00
Hyunyoung Song 8b81068155 Merge "Change default icons for launcher [3/3]" into ub-launcher3-qt-dev
am: 60e3499bd4

Change-Id: I326488aed1267323d7c23e006c35b173db319571
2019-04-13 12:47:30 -07:00
TreeHugger Robot 60e3499bd4 Merge "Change default icons for launcher [3/3]" into ub-launcher3-qt-dev 2019-04-13 19:38:44 +00:00
Hyunyoung Song a19584d820 Change default icons for launcher [3/3]
Bug: 126738409
Bug: 129955150
Change-Id: I9daf5bd253dc72c99ab3a466766a4d30a95d0952
2019-04-13 00:51:33 -07:00
Vadim Tryshev e2483f6aae Merge "Gestures for zero-button mode" into ub-launcher3-qt-dev
am: b1303d57f7

Change-Id: I73383e917abd6477d8fb9a5c73aa964ef67e0791
2019-04-12 19:56:59 -07:00
Vadim Tryshev b1303d57f7 Merge "Gestures for zero-button mode" into ub-launcher3-qt-dev 2019-04-13 01:50:16 +00:00
vadimt 679b09d6bd Gestures for zero-button mode
Change-Id: If17ba764ede132694ccf0c56269df1a4117ec0f6
2019-04-12 18:19:38 -07:00
TreeHugger Robot 233342cc5f Merge "Update Go recents visibility based off adapter" into ub-launcher3-master 2019-04-13 00:21:36 +00:00
Hyunyoung Song c5b44fab87 Change default icons for launcher [2/3]
am: 7924a3c97a

Change-Id: Ib99b3564ea95e20c62d29708cb84cf0eec31786b
2019-04-12 17:06:44 -07:00
Hyunyoung Song 7924a3c97a Change default icons for launcher [2/3]
Bug: 126738409
Bug: 129955150
Change-Id: Ia140c5d16b74e4719131aa5035313b7b27028ad1
2019-04-12 16:19:53 -07:00
Hyunyoung Song 091a4d3c9d Merge "Change default icons for launcher [1/3]" into ub-launcher3-qt-dev
am: eba17ec2ac

Change-Id: I2dbd72c570c964f225a709f7254b24b8a0017f84
2019-04-12 16:02:10 -07:00
Kevin f1a47a0fe6 Update Go recents visibility based off adapter
View visibility should be based off adapter since that's what the layout
items are based off of.

Bug: 130440957
Test: Loading UI is shown when going to recents Go
Change-Id: I1f167553b6fdce757865c739b9793b63a20e7f57
2019-04-12 15:41:51 -07:00
TreeHugger Robot eba17ec2ac Merge "Change default icons for launcher [1/3]" into ub-launcher3-qt-dev 2019-04-12 22:28:04 +00:00
Hyunyoung Song fa058473d2 Change default icons for launcher [1/3]
Bug: 126738409
Bug: 129955150
Change-Id: Id6ecf50b83a6b4dfea6615fba37698468cafc0d2
2019-04-12 22:20:32 +00:00
vadimt 72bd5a046f Unlock the phone before each test
am: c255c8b357

Change-Id: I62baf00e218206488b5c1568d8c643ea787f98b0
2019-04-12 14:35:24 -07:00
vadimt c255c8b357 Unlock the phone before each test
We were trying to do so from the test config, but this didn't work

Change-Id: I098eb392c76572bc43443adac130fa8700b49bde
2019-04-12 14:00:40 -07:00
Kevin 987799dfa1 Animate content fill animation to Recents Go
This CL adds the animation that occurs when transitioning from a set of
empty views to the actual task list after it is loaded. This is done by
setting a one-shot item animator that animates changes, for item views
that fade from empty to filled, and removes, for when we have too many
empty views.

Bug: 114136250
Test: Artificially increase task list load time and see animation fill
Change-Id: Ibbc09db702e591063ceea61df2359f18a3fcf8f9
2019-04-12 13:13:46 -07:00
vadimt c1639e4276 Removing hourglass_bottom
am: c6d9ddfddb

Change-Id: Ia3d08b7dd14728fc5d4008e3dc62e3a4637961e0
2019-04-12 12:51:20 -07:00
vadimt 8f277b3428 Simplifying and removing unnecessary checks from app-drag tests
am: ab472e8c06

Change-Id: I084294421d3493f39bf6360a77bc3f3be800073e
2019-04-12 12:51:00 -07:00
vadimt 9760f88ba1 Tapl: also logging contexts
am: 6938276da1

Change-Id: Icd3dfd36d6141f1565cfa25a27d9edd8db3227ec
2019-04-12 12:50:38 -07:00