The solution to the failure of the three physical buttons caused by the use of the floating window

After clicking the floating window, the three physical buttons fail:


Be sure to connect the settings like this, separated by "|".

params.flags= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL ;

It is not possible to set this separately, it will cause only the home button to be used :

params.flags= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
params.flags= WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL ;


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325389388&siteId=291194637