Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back button not working #2

Open
yaroslavkulinich opened this issue Jul 20, 2016 · 3 comments
Open

Back button not working #2

yaroslavkulinich opened this issue Jul 20, 2016 · 3 comments

Comments

@yaroslavkulinich
Copy link

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.

@mollyIV
Copy link
Owner

mollyIV commented Jul 23, 2016

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 :)

@rubinbasha
Copy link

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?

@djdance
Copy link

djdance commented Feb 24, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants