OSDN Git Service

Prevent invisible PiP menu activity from having touch focus.
authorWinson Chung <winsonc@google.com>
Thu, 23 Mar 2017 22:17:01 +0000 (15:17 -0700)
committerWinson Chung <winsonc@google.com>
Wed, 29 Mar 2017 17:28:56 +0000 (17:28 +0000)
commit26db39793ee90c297352b18f5b52c21a853b612d
treeb80c7f73e99a61f1a2ccac42e2210524ab753dcf
parent76d779374a92f502579e72f822cf815e54be33ea
Prevent invisible PiP menu activity from having touch focus.

- Mark the decor view as invisible when the the PiP menu activity is
  hidden.  We don't call Activity.setVisible() as that alters other
  internal states that affect the system's understanding of whether
  the activity will draw or not.

Bug: 36225602
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I6b1ed7098e1f0ff427f0655c45e566ca60979623
(cherry picked from commit 8c8ba19e0d3214f28dccec91549df9c3cd64ae10)
packages/SystemUI/src/com/android/systemui/pip/phone/PipMenuActivity.java