ChatHeads icon indicating copy to clipboard operation
ChatHeads copied to clipboard

Back button not working

Open yaroslavkulinich opened this issue 9 years ago • 3 comments

Replace WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL with WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE when configuring LayoutParams in addToWindowManager() method to allow users to normally use back button.

yaroslavkulinich avatar Jul 20 '16 14:07 yaroslavkulinich

Hi @mtwain thank you for requesting a new feature. Actually it's not as simple as replacing the flags in a service. You need to run an extra service with transparent overlay with particular flags set. I'll be working on that soon :)

mollyIV avatar Jul 23 '16 18:07 mollyIV

I used your solution also for creating a chat heads like view and i also had issues with the back button and also while the view was shown than i could not show dialogs when long clicking other applications(like dialogs that pop up after long clicking a contact in the contacts app in my LG G4 device.) The solution in my case was to just use WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE . @mollyIV I am curious what might be the issue with this approach, since you say in your comment that it is not as simple. What do you mean by that?

rubinbasha avatar Feb 08 '17 14:02 rubinbasha

Agree, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE allows me to access checkbox after running, overwise not.

Steps to reproduce:

  1. check service
  2. press Home
  3. call our SETTINGS again from system bar
  4. can't click anymore!

djdance avatar Feb 24 '17 11:02 djdance