Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Move OverlayView to below the status bar on Oreo+ #165

Closed
wants to merge 1 commit into from
Closed

Move OverlayView to below the status bar on Oreo+ #165

wants to merge 1 commit into from

Conversation

saket
Copy link

@saket saket commented Sep 14, 2017

telecine - oreo 2

telecine - oreo 1

This PR moves the overlay below the status bar by applying a top-padding to the View's content.

I initially wanted to do this by modifying the WindowManager.LayoutParams#y value in onApplyWindowInsets() instead, but that triggers a second onApplyMethodInsets() call with a different value for WindowInsets#getSystemWindowInsetTop() and I am not sure how to avoid/deal with that.

Fixes #149.

@saket saket changed the title Move OverlayView to below the status bar on Oreo and above Move OverlayView to below the status bar on Oreo+ Sep 14, 2017
@raveeshbhalla
Copy link

I foresee a problem where the overlay view now blocks touch targets in the app below (particularly action items)

@saket
Copy link
Author

saket commented Sep 14, 2017

I just realized that the Touch the clock area to stop recording text also needs to be updated. Any suggestions apart from Touch below the clock area to stop recording?

@CDRussell
Copy link

Just tried this out; this works well for me.

@raveeshbhalla is probably right that this will make it tricky to hit the app's UI behind the controls.

But right now it isn't functional at all on Oreo. This fix at least gets it going again for some/most apps.

@JakeWharton
Copy link
Owner

JakeWharton commented Sep 22, 2017 via email

@CDRussell
Copy link

CDRussell commented Sep 22, 2017 via email

@saket
Copy link
Author

saket commented Sep 23, 2017

Turning off the display doesn't sound like a very good experience and I might be wrong, but dismissing the keyguard is only possible if there is no lock, right?

What do you folks think of pressing both the volume buttons instead?

@CDRussell
Copy link

I haven't ever worked on capturing the display, so probably a naive thought, but how does the screen capturing work with secure views?

Any chance you could leave the start/stops controls visible but mark them as secure views somehow, and the screen recording will magically omit them in the output video?

@saket
Copy link
Author

saket commented Sep 23, 2017

@CDRussell I think we'll have to then make the overlay draggable then so that it doesn't block the UI.

@CDRussell
Copy link

Yeah that's where I was heading with that idea.

But I'm not convinced that it would even work. Think the "secure" views might result in black areas in the video, rather than seeing the original app.

@JakeWharton
Copy link
Owner

JakeWharton commented Sep 23, 2017 via email

@raveeshbhalla
Copy link

raveeshbhalla commented Sep 23, 2017 via email

@thenickreynolds thenickreynolds mentioned this pull request Oct 14, 2017
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update for O
4 participants