Commit Graph

3650 Commits

Author SHA1 Message Date
Winson Chung
ceffbf644f Remove LockscreenRecentsActivity am: 1801d19bcd
Change-Id: I8c9aa9ce998391b20ceaf5bd3a9a11e1ddcedcb1
2020-05-14 18:18:22 +00:00
Winson Chung
1801d19bcd Remove LockscreenRecentsActivity
- This activity would create another task (no longer in the same
  stack since we don't have activity type stacks) which was causing
  the camera to be occluded sometimes, which then cancels the recents
  animation
- Tweaking the animation slightly to match the movement of the closing
  the activity back to the lockscreen

Bug: 156514461
Test: Launch camera on the lockscreen and swipe up to dismiss (repeatedly)
Change-Id: I8aaac22767288d7fbf183683276c50acaaf831d2
2020-05-14 10:51:44 -07:00
Sunny Goyal
2746355984 Merging WindowSizeStrategy with BaseActivityInterface am: d9c0349c1a
Change-Id: I1bb7d1b6d1cbc25697017193034207a5184aeae7
2020-05-14 09:35:04 +00:00
Sunny Goyal
d9c0349c1a Merging WindowSizeStrategy with BaseActivityInterface
Also converting BaseActivityInterface to an abstract class instead of interface
so that it can hold member variables

Change-Id: I04cab934137eb1d6f470c6a7618c50a2ed2c71c1
2020-05-14 01:22:25 -07:00
thiruram
c60f41a352 Add LAUNCHER_FOLDER_LABEL_CHANGED events for folder label updates. am: f95f152971
Change-Id: I5793e81fa24dc827f0f99c07b37d8d4a32428277
2020-05-14 01:58:54 +00:00
thiruram
f95f152971 Add LAUNCHER_FOLDER_LABEL_CHANGED events for folder label updates.
Sample Logs for all update combinations: https://docs.google.com/document/d/1CBP2yTcXdFhPdNG5ZmWFKSgd8mDbMevY-akVlUXPLDo/edit#bookmark=id.7y1p8n2dz8ge

Bug: 155410872
Bug: 152978018
Change-Id: I296b124b16aa07878f2cf7b74ab91f13b8e6cfbf
2020-05-13 17:36:10 -07:00
thiruram
d5352395b6 Add support to log LauncherEvent without ItemInfo. am: b9080c2a15
Change-Id: I7214501965c3b5f2188a8f596ced341595905b57
2020-05-13 23:20:13 +00:00
thiruram
b9080c2a15 Add support to log LauncherEvent without ItemInfo.
Change-Id: I145a9500b0442c2b5d9f7f691460465b2bb13a07
2020-05-13 22:58:23 +00:00
Vinit Nayak
7943cc28eb Merge "Update recents child views RTL handling" into ub-launcher3-rvc-dev am: bdd6522661
Change-Id: Idc5c431b8711f4f153539b55980a1773047cfd27
2020-05-13 21:58:03 +00:00
TreeHugger Robot
5d9280f708 Merge "Build fix. Unifying task size calculation code." into ub-launcher3-rvc-dev am: 26cdf42c42
Change-Id: I01ad601d0fc5248c7d87c3fe2697a4f059db5a3d
2020-05-13 21:57:53 +00:00
Vinit Nayak
bdd6522661 Merge "Update recents child views RTL handling" into ub-launcher3-rvc-dev 2020-05-13 21:41:09 +00:00
Sunny Goyal
f190fd2d4e Build fix. Unifying task size calculation code.
Change-Id: Iaed3a28a9e74c39da8d01aa42b30c96bdb69a661
2020-05-13 14:06:07 -07:00
TreeHugger Robot
1d1c080f0c Merge "Keep Predicted icon same size when dragging" into ub-launcher3-rvc-dev am: 650da4bbd1
Change-Id: I9a7a225a824f1708ac071a933884f5ee6d913481
2020-05-13 19:33:36 +00:00
TreeHugger Robot
650da4bbd1 Merge "Keep Predicted icon same size when dragging" into ub-launcher3-rvc-dev 2020-05-13 19:18:28 +00:00
TreeHugger Robot
89c630abe1 Merge "Changing RecentsView layout based on the split screen task size" into ub-launcher3-rvc-dev am: e0fef877e4
Change-Id: I1bda09594fdf344f3c35f641cb21bdbe0ece1548
2020-05-13 18:36:43 +00:00
TreeHugger Robot
a0aa8a790f Merge "Adds Settings button back to Back gesture tutorial." into ub-launcher3-rvc-dev am: d893a478a3
Change-Id: I2ce1a865519932d53c38389ce29c81b5c176007f
2020-05-13 18:36:37 +00:00
TreeHugger Robot
e0fef877e4 Merge "Changing RecentsView layout based on the split screen task size" into ub-launcher3-rvc-dev 2020-05-13 18:35:05 +00:00
TreeHugger Robot
d893a478a3 Merge "Adds Settings button back to Back gesture tutorial." into ub-launcher3-rvc-dev 2020-05-13 18:34:37 +00:00
Becky Qiu
3e1001247d [Overview Actions] Adjust the select mode taskview UI. am: dc48fc4f84
Change-Id: Ie3b94689faf8f0110b0130e46743989316b4eb24
2020-05-13 18:30:29 +00:00
Andy Wickham
c2ed2d0a6a Minor cleanup in RecentTasksList.java am: 65381300f2
Change-Id: Ic05172c5eb79087bbb29ac0b6f1ffdc56ea66dc9
2020-05-13 18:30:18 +00:00
Becky Qiu
dc48fc4f84 [Overview Actions] Adjust the select mode taskview UI.
It will have a 30dp horizontal paddings and vertically in the middle of the screen.

Test: local
Bug: 155444014

Change-Id: I4f3d627008b2c114cc4921bf683919c6044926e4
2020-05-13 18:23:28 +00:00
Samuel Fufa
167210a323 Keep Predicted icon same size when dragging
-> In addition, this also prevents the drawing of ring effect for predicted icon when view is about to be copied to drag bitmap. Icon will scale to full size (without ring) when dropped.

Video attached to bug report

Bug: 152325754
Test: Manual
Change-Id: Ibd1a5dbf76c41bdc30ae851ad914a4d0e32703c8
2020-05-13 11:22:27 -07:00
Andy Wickham
ee1203e436 Adds Settings button back to Back gesture tutorial.
Uses a simpler Intent which actually works :)

Fixes: 149348244
Bug: 148542211
Change-Id: I5e28c63d1eec93b4642e398c7532e7ec4809d6e2
2020-05-13 10:48:38 -07:00
Andy Wickham
65381300f2 Minor cleanup in RecentTasksList.java
Change-Id: I8a496300c936e4d3f2bcd6b0c6c482e5bbb0452d
2020-05-13 09:34:49 -07:00
Vinit Nayak
08a8327b1d Update recents child views RTL handling
Fixes: 154928106
Test: AppIcon and clear all button
shows up as expected in LTR and RTL
configuration.

Change-Id: Idcf367b8aff53002e63a03b64b96e3602127707e
2020-05-12 22:24:26 -07:00
TreeHugger Robot
a3e412ea2d Merge "Don't handle task appeared during second quick switch transition" into ub-launcher3-rvc-dev am: 75dcd82a67
Change-Id: Ie8e09210f9821fcc63c051ebf3789035bd4f5f4f
2020-05-13 04:09:22 +00:00
TreeHugger Robot
75dcd82a67 Merge "Don't handle task appeared during second quick switch transition" into ub-launcher3-rvc-dev 2020-05-13 03:35:23 +00:00
TreeHugger Robot
6097c36aea Merge "[Overview Actions] Put the taskview in the middle of the screen." into ub-launcher3-rvc-dev am: 7c604edf92
Change-Id: Icfd6a7d2a74dcdd355ff4afdf68b385cd4675996
2020-05-12 23:19:19 +00:00
TreeHugger Robot
7c604edf92 Merge "[Overview Actions] Put the taskview in the middle of the screen." into ub-launcher3-rvc-dev 2020-05-12 23:01:25 +00:00
Tony Wickham
f6be443eb4 Don't handle task appeared during second quick switch transition
Instead of using shared gesture state, use the swipe handler's
internal state. This ensures that only the handler that started
the new task can finish the controller for it (i.e. starting a
new gesture, which creates a new handler, will ignore the
onTaskAppeared() that the previous handler initiated).

Test: Quick switch to delayed task A, then quick switch to B right
before onTaskAppeared() such that we get onTaskAppeared() during
the transition (easier to repro if you increase animation durations
with springs off). Before this change, A appeared on top.

Bug: 156412706
Change-Id: Ic7d3cd43399005095b2e7c7382218edffefdc27b
2020-05-12 17:46:02 -05:00
Sunny Goyal
a0b81d3488 Adding state manager to fallback recents activity am: 3f948e3f42
Change-Id: I0d957c6966ff43edb7a74a867e436cfb58dbae07
2020-05-12 22:28:35 +00:00
Becky Qiu
073cbca370 [Overview Actions] Put the taskview in the middle of the screen.
Using horizontal padding 48dp to adjust the scale of the taskview and put it in the middle of the vertical space.

Test: local
Bug: 155444014
Change-Id: Iee6096baf18ae1106c24c83b4675abd4d3ff4d4f
2020-05-12 15:00:54 -07:00
Sunny Goyal
b78ea4b4fc Changing RecentsView layout based on the split screen task size
Bug: 155816922
Change-Id: I33f69d72f8a27e3621d029c6ee4045c3664f3ac9
2020-05-12 14:04:19 -07:00
Sunny Goyal
3f948e3f42 Adding state manager to fallback recents activity
Bug: 156398988
Change-Id: Id0a106ef888ade5223940ac8243108c39b4d6b98
2020-05-12 13:31:48 -07:00
TreeHugger Robot
6043914ab3 Merge "Simplifying animation creating logic for app-to-overview" into ub-launcher3-rvc-dev am: 7dcd4d6ed6
Change-Id: Ic8e649d1bf85bf2c89052fbad8876a56f0c1fb70
2020-05-12 18:51:49 +00:00
TreeHugger Robot
7dcd4d6ed6 Merge "Simplifying animation creating logic for app-to-overview" into ub-launcher3-rvc-dev 2020-05-12 18:42:22 +00:00
TreeHugger Robot
50e5b48987 Merge "Even more additional logging for pause non-detection" into ub-launcher3-rvc-dev am: 2830c99bee
Change-Id: I79cb9f2505f63520d68e6171c78e679d2f7a393b
2020-05-12 18:23:53 +00:00
TreeHugger Robot
2830c99bee Merge "Even more additional logging for pause non-detection" into ub-launcher3-rvc-dev 2020-05-12 17:35:42 +00:00
vadimt
60bc43d0cc Even more additional logging for pause non-detection
Bug: 156044202
Change-Id: I7c1a8a9ef4149bd64597908c0b6797cfe33fd4b6
2020-05-12 09:51:24 -07:00
Sunny Goyal
4888790bde Simplifying animation creating logic for app-to-overview
Removing optional 'shouldAnimate' flag. This was false only in 3-button mode but
the code was also handling animation, leading to inconsistent expectations. Instead
always assuming animation and finishing the animation promptly.

Change-Id: Ic56476dc5ea64c9a7d7e9744f3e33cd61dfde9e8
2020-05-12 16:37:27 +00:00
TreeHugger Robot
0d509972b3 Merge "Fixing pullback factor not initialized after launcher process death" into ub-launcher3-rvc-dev am: b8759f9b26
Change-Id: I756285734bbd876b378f0577608bd169a87f1dcb
2020-05-12 03:18:35 +00:00
TreeHugger Robot
b8759f9b26 Merge "Fixing pullback factor not initialized after launcher process death" into ub-launcher3-rvc-dev 2020-05-12 03:06:29 +00:00
TreeHugger Robot
cce22e3aae Merge "Make educational half-sheet black in dark mode" into ub-launcher3-rvc-dev am: 3d3c41a3a6
Change-Id: I6475e7778377bccec0ab6ab3c6fd9f16c1710e7c
2020-05-12 01:21:38 +00:00
TreeHugger Robot
3d3c41a3a6 Merge "Make educational half-sheet black in dark mode" into ub-launcher3-rvc-dev 2020-05-12 01:07:21 +00:00
TreeHugger Robot
1095b4e4e8 Merge "Abstracting out state handler logic into base classes so that it can also be used in different activity" into ub-launcher3-rvc-dev am: eb0136b7c4
Change-Id: I951cd086091f97ab5b61635af74582287e3a449e
2020-05-12 00:32:10 +00:00
TreeHugger Robot
eb0136b7c4 Merge "Abstracting out state handler logic into base classes so that it can also be used in different activity" into ub-launcher3-rvc-dev 2020-05-12 00:29:52 +00:00
TreeHugger Robot
40ce12ae48 Merge "Restart running task if another task was started but not appeared" into ub-launcher3-rvc-dev am: badfff4469
Change-Id: I6c4e7f72b4dce305c34f7d5fd0b257e6d6f18b3c
2020-05-12 00:27:26 +00:00
Sunny Goyal
35e7d38681 Abstracting out state handler logic into base classes so that it can
also be used in different activity

Change-Id: Ic5e60b21e1429c71f1cd4e7041e70bf4fc9761b7
2020-05-11 16:38:26 -07:00
Tony Wickham
a57000c33d Restart running task if another task was started but not appeared
If we just finish the controller to resume the running task like
we normally would, the delayed task will appear on top when it's
ready. Instead, we need to start the original task in this case.

- Move mLastStartedTaskId to GestureState, shared between swipe
  handlers when continuing the gesture.
- Update logic to change LAST_TASK to NEW_TASK if a task was
  started (but not appeared) during the same gesture; likewise,
  only change NEW_TASK to LAST_TASK if no task was started.
- Finish the controller when successfully starting the task
  that already appeared, since we won't get onTaskAppeared().

Bug: 156132424
Change-Id: I1e9af297840745ab3d5e90214425f10a2616d90a
2020-05-11 18:26:06 -05:00
TreeHugger Robot
5ae89c4789 Merge "Fixing current task not overshooting on swipe-up in overview" into ub-launcher3-rvc-dev am: ed31f24dbf
Change-Id: I7005d712a77453d138fc3f9997213d63b307a394
2020-05-11 23:14:49 +00:00