Fixes a race in BluetoothControllerImpl that could lead
to a ConcurrentModificationException, by moving the manipulation
of the callbacks array to the handler.
Change-Id: I7c3be74d239d4706f55357f54e539b7b6439e76d
Fixes: 29390132
It was possible for the state to be updated in the background
but before the callback was actually registered and never propagate
to the UI. Call the callback directly after it is added (from the
QS thread) to ensure that the current state gets sent out on tiles
being added.
Change-Id: Idd76dce5cbc9dc9c99f9b3dc13998751fd170582
Fixes: 29419435
We depend on a layout listener for when we ask for focus, but layout
sometimes doesn't happen. Make it always happen.
Change-Id: I7c805470c6ce9863bf7eac627f59d49191ce8946
Fixes: 29126464
- The signal cluster dedupes multiple calls with the same value, but
since the first calls come before the rotation relayout, the dark
tint is calculated incorrectly and subsequent calls get deduped.
Ensure that if the layout changes, we also update the tint of all
icons again.
Bug: 29390902
Change-Id: I79c3796cba2f9a94d44f9fd59cf1702a64b62cd9
- Catch the exception when removing a view that is not yet attached.
This is not an issue because we are in the process of attaching it for
the first time anyways.
- Ensure that we post the calls from the secondary user in the main
thread for the system user. Especially since this calls through to
add the view for the new screen pinning window.
Bug: 29341417
Change-Id: If0e29a77ddb67426115f1d5d9f1adb580a1f07df
The backgrounds weren't being updated before the collapse animation when
going to the keyguard so it would look very bad when they collapsed.
This moves updating the background into setChildrenExpanded which will
cover updating the background for both the tapping to expand case as
well as the animating to the keyguard case.
Change-Id: Icba2fa895498d307a38bd9f65be06265afd21a1a
Fixes: 29240532
We reinflated the brightness mirror, but not the QS panel,
which meant we were controlling the wrong view. Now we
reapply the mirror controller on configuration changes.
Change-Id: I69e5f1962e9ec0cfda85b19b1d5d5bbdf3d5779b
Fixes: 29339630
Previously, scrolled notifications would collapse into a stack (the top
stack). With the new design, that's no longer the case, so tall
notifications can now be scrolled out so much that their translation
becomes negative.
Unfortunatly, getBoundsOnScreen then clips the bounds to the parent,
which interferes with our adjustment to the bounds, so we first undo
the clipping.
Fixes: 29368064
Change-Id: I71da054ed1eb6d06868d56e18d0320f764ed86b3