Finally fix incorrect flipping to quick settings.
Commit f6685c5c fixed this for the two-finger pulldown. It reverted commit c5e8dca7 in the process, which was incorrect, but fixed another condition of this problem occuring nevertheless. The actual problem the latter fix tried to fix was that the flip decision was dependant on the timing of the view layout: getMeasuredHeight() returned whatever was set in the last layout, which might not have happened when hiding the view, so at the time of the next ACTION_DOWN getMeasuredHeight() returned the height from the time the panel was last visible. Fix that problem by using the height scheduled for the next layout, so we're always up-to-date. Change-Id: Ib97f34f9aa0a6f28d48b4ec3e16c82a814cda0d0
Loading
Please register or sign in to comment