Comments (17)
https://developer.android.com/reference/android/view/DisplayCutout.html#getWaterfallInsets()
from mastodon-android.
I'm leaning towards this being something Motorola did that can't be reproduced on AOSP/Pixel, but as I said, I'd like to collect more reports to see how many, and which, devices are affected, if any.
It does only happen when using the "fullscreen" option to open the app, which should enable(or force idk.) the waterfall area.
It does look like an OEM addition. There's no such thing on the emulator.
from mastodon-android.
Sure, but do you also have (black)/#282c37/unused bars at the right and left of the screen on your S9 and are these intended?
Nope. But then it runs Android 9, and waterfall insets were only added in 10.
from mastodon-android.
Sure. Here are all screenshots in both modes (but there doesn't seem to be any difference between fullscreen and normal):
from mastodon-android.
TIL that this device exists. It looks pretty similar to the Galaxy S9 I mostly debug the app on.
But, things getting beneath the status bar is something I'd like to avoid. Do they do something special with the window insets (it feels like they do)? Do they have any developer docs about that?
from mastodon-android.
That's about the edges, but doesn't explain why systemWindowInsets
seemingly aren't returned correctly 🤔
from mastodon-android.
Not sure but after tapping on the settings-icon and going back it is getting displayed correctly
Edit: the screenshot I uploaded doesn't include the waterfall-area, which was in #282c37 when I made this screenshot. I think my device just disabled the waterfall.
from mastodon-android.
Okay. Does it also fix itself if you rotate the screen? And it's Android 11 and stock ROM, right?
It might well be that my handling of window insets isn't 100% correct, so for now I'll wait to see if this issue happens on any other devices. In particular, I only have one device with a screen cutout (Pixel 4a), so my testing in this area is somewhat limited.
from mastodon-android.
No, it doesn't fix itself when rotating and yes, it's the stock Android 11 rom.
Btw can't you just emulate the waterfall in developer settings?
from mastodon-android.
Indeed I can, but I still can't reproduce the "toolbar ends up behind the status bar" thing 🤔
(this is an emulator with android 12)
from mastodon-android.
It does only happen when using the "fullscreen" option to open the app, which should enable(or force idk.) the waterfall area.
from mastodon-android.
Sure, but do you also have (black)/#282c37/unused bars at the right and left of the screen on your S9 and are these intended?
The toolbar thing wasn't actually why I opened this issue, it was about the unused waterfall area(which is probably why this sometimes happens).
from mastodon-android.
Anyway, I was bored and I wanted something similar for quite some time, so I made a simple app that visualizes the window insets in an easy to understand form. Could you please install it and take screenshots in both modes?
app-debug.apk.zip (remove .zip after downloading because github is picky about file types)
from mastodon-android.
Thanks!
Setting LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
was probably not a good idea (and the Mastodon app doesn't do it). Try this one, there should be a difference in those modes with the checkbox unchecked:
app-debug.apk.zip
from mastodon-android.
Those marked with "F" were made in fullscreen mode
Edit: The screenshot of the last picture(fullscreen, no LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS) doesn't include the waterfall area which I can see. The visualisation in the background doesn't make a difference in fullscreen when checking and unchecking the box(for me, on the screen).
from mastodon-android.
Hm. Yes it does look like I expect it to (the top system inset is there), the toolbar getting behind the status bar must be a bug in the way I handle insets then. Also strange how no DisplayCutout is returned at all when you don't set that layout mode 🤔
from mastodon-android.
Also strange how no DisplayCutout is returned at all when you don't set that layout mode 🤔
That seems to be a bug. I tried it a second time and now I am seeing the display cutout.
Edit: If fullscreen is enabled before opening it the first time after force-closing, you'll always get the cutout. If it was disabled, you only get it if this layout-mode is set.
from mastodon-android.
Related Issues (20)
- Web app lists HOT 1
- Question about add row feature HOT 1
- Hash tag personalized settings
- Gif size increase request
- Webp gifs
- Web app vs app store app gallery selection
- Gif auto play on app
- The wrong avatars for nickname search result. HOT 1
- Can't add pixelfed.social acount HOT 1
- Follower time record
- Emote crash HOT 1
- Please fix featured hashtags glitch HOT 9
- Include toot text when sharing to other apps
- I have received 404 and 405 error notices for over one year now. HOT 1
- QR code scanning does not work on MicroG / Degoogled devices HOT 2
- Translate alternative text
- Auto play animated gifs HOT 2
- [Feature Request] Please add options to hide boosts and replies in timeline
- Feature request: copy alt text HOT 3
- Translating an Auschwitz Memorial post crashes the Android app HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mastodon-android.