- In the small-stack cases, set the initial state to top-align the
back-most task. In addition to offsetting the position, ensure that
the dim for the back-most task is offset by this new position.
- Fixing issue with wrong return value when update insets.
- Fixing issue where tasks disappear after rotating while scrolling the
stack, due to the scrollering setting the stack scroll to an invalid
scroll position in the new layout in the new orientation.
Bug: 27859654
Change-Id: Ia4aaa3fe445032493c94a8dee7f6fea33bee36ec
- Make sure to retain the state when divider goes through a configuration
change in order to avoid that nothing happens when entering multi-window.
Save the state in DividerState and use a handler that's independant of the
attached state.
- Don't allow home task to dictate orientation unless the docked stack is
minimized. This caused a lot of weird bugs because when docking a task,
home stack gets moved to front, and if home task is front of stack, it
temporarily might dictate the rotation but later not anymore so this
causes two rapid configuration changes which may cause a lot of weirdness.
Change-Id: I6a2308af893cd8413ee8801e5b964f6ddc0abd51
Fixes: 28943853
If a touch outside the status bar window is detected
we schedule autohiding the status bar - which is wrong
when that touch is due to touching the IME for DirectReply.
Bug: 28914905
Change-Id: Ic86612192368181f195fa54ac4f20edaf02af685
This includes following changes for performance
1. Passes the key events directly between the windows instead of using
dummy Views and OnFocusChangeListener to prevent main thread from
handling unnecessary focus changes.
2. Limits the window size for PIP controls to reduce unnecessary draw.
Here's the test result. Test is performed with paused PIP video
1. 5 visible recents task
Focus down: 48.14 fps -> 85.396 fps (+77.39%)
Focus up: 24.67 fps -> 45.33 fps (+83.77%)
2. 3 visible recents task
Focus down: 51.98 fps -> 132.72 fps (+155.34%)
Focus up: 30.91 fps -> 53.38 fps (+72.69%)
Bug: 28042495
Change-Id: I363232176975b160e122748c9997ef4b46b73a28
Fixes a crash that happens when we cannot look up a package's
resources for reasons.
Change-Id: I4884536a3eefa8fe82bd274925241f4c798e08e3
Fixes: 28982204
Fist of all we made the statemap a weak hashmap in order never
to leak any views anymore.
Another leak could occur because predrawlisteners were added twice
but removal only removes one. A view was then leaked in case it was detached
before predraw.
Also fixed a leak when transforming the header because a state wasn't
nulled.
Change-Id: I2573a506c307196ef60c905dc823ea8a95e91a16
Fixes: 28945863
- In this case, recents is the last running task instead of the
previously fullscreen app (likely due to some preparation for the
docking), and we should not set the task to launch/cancel window
transitions for.
Bug: 28943422
Change-Id: I3c381d3fa33a69adb7d8b606633433a898841526
- Adding a null check for tasks that have already been removed, but may
be launched.
Bug: 28890599
Change-Id: Idde322c737a5543e639e693fbe7615e720a12c1e
- When updating a TaskStack, defer calling any callbacks until the stack
is updated. Otherwise, the handler may incorrectly check the size of
the stack to be empty, which triggers Recents to go home.
- This CL also removes an erroneous double call to onStackTaskRemoved()
when updating, one explicit call and the call that is made internally
in removeTask().
Bug: 28941269
Change-Id: I37b93bd959a625096925a16a426269a0c79de4e7
Fixes a bug where the action bar was not where it
was supposed to be if the expanded notification
was smaller than the collapsed + action height.
Bug: 28767094
Change-Id: I30c0ae430d4d5f9e88a02f5143094e90cf31b620
Use the title description as content description for the task
card, this should be better for talkback.
BUG: 28594452
Change-Id: Idc97004f1370a35ea5328c4e9e46a72a9349c8f4
This is an alternate solution. Not sure if this is better than
the current solution.
BUG: 28594452
Change-Id: I08b4ca8741ceb3491950ba779510b08775bd0ee7
Some views were not getting the call to reactivate clipping
this is because only the when the view was made visible
was it reset, views made invisible would be missed.
Fixes: 27364129
Change-Id: Ie6944569f432cd657f7f741c95c4067b346ea98b