Merge "Make PiP overlay trusted to let touches pass-through"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5b10f0ed49
@@ -22,6 +22,7 @@ import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
|
||||
import static android.view.WindowManager.LayoutParams.FLAG_SLIPPERY;
|
||||
import static android.view.WindowManager.LayoutParams.FLAG_SPLIT_TOUCH;
|
||||
import static android.view.WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH;
|
||||
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY;
|
||||
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
|
||||
import static android.view.WindowManager.SHELL_ROOT_LAYER_PIP;
|
||||
|
||||
@@ -419,7 +420,7 @@ public class PipMenuActivityController {
|
||||
TYPE_APPLICATION_OVERLAY,
|
||||
FLAG_WATCH_OUTSIDE_TOUCH | FLAG_SPLIT_TOUCH | FLAG_SLIPPERY | FLAG_NOT_TOUCHABLE,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
|
||||
lp.privateFlags |= PRIVATE_FLAG_TRUSTED_OVERLAY;
|
||||
lp.setTitle(MENU_WINDOW_TITLE);
|
||||
return lp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user