OSDN Git Service

Make QSCarrierText always selected
authorFabian Kozynski <kozynski@google.com>
Mon, 22 Apr 2019 15:02:40 +0000 (11:02 -0400)
committerFabian Kozynski <kozynski@google.com>
Mon, 22 Apr 2019 15:02:40 +0000 (11:02 -0400)
commit9f3ee9e71e4508d4b323c435111bc123fe0d4ec0
tree0a927500cacc5081f9fa2cc30a12c2034e062369
parent18184f9c86565f27efa74b317ab464dee1c6b94c
Make QSCarrierText always selected

We were changing selected value with visibility and that was making the
Carrier text become selected when QS expanded, capturing focus when it
shouldn't. This had also the effect of selecting it on HUN.

This change makes QSCarrierText always selected=true and only changes
its ellipsize with visibility

Test: manual, start expanding QS
Test: manual, send Hangouts message
Fixes: 129661790
Change-Id: I6c60ce288a1875cfd7854ad888170fdd77b2c65a
packages/SystemUI/src/com/android/systemui/qs/QSCarrier.java