-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Android] Stage fullscreen issue when image is displayed by file.openWithDefaultApplication
#3569
Comments
Would it be possible to have a look at the resize behavior here @ajwfrost ? |
Any news on the stage resize issue? |
We've not been able to reproduce this one here .. although I noticed you've got Android 10 listed there. I'll see if we can dig out an older phone to check it. One thing I wondered though: you mention opening the image using the default application: to start with, we get a list of options here because of how the Android intents are set up. Do you know if your scenario reproduces if you have the options, or is it going directly to a gallery-type view? And can you check in the settings whether the gallery/photos app is set up with a full-screen mode setting? thanks |
This would be great, thanks!
There is no option I can chose from - opening the image with the default app immediately opens a fullscreen gallery-type view inside the AIR application. It has no extra window (and thus causes the AIR app to also go fullscreen).
I'm actually unable to find any setting which could be related to this. I would assume my phone (/Android) has no such general settings for apps at all. Never saw anything related to fullscreen so far. |
Any update or info on this fullscreen issue? |
Hi We'd tried in an older Samsung S8 (Android 9) and an LG (Android 10) but still no reproduction. Looking at your description, the one extra step we seem to have to make is when the image first opens in the phone's default image-viewer activity: these are not opening in full-screen mode. If you tap on the image after it's opened, they typically then fade out the status bar/button bar. But your description has the second bullet which suggests this automatically happens when the other activity is opened. So this might be something Sony-specific. I had a feeling we did have a Sony handset somewhere, I will try to find out who has that! In the meantime though: are you able to send a log of the resize and any activate/fullscreen/orientation events that are sent, and to distinguish when these are happening? We may be able to try to detect this scenario and work around it somehow, or at least provide enough information that you would be able to catch this and manually resize the window. thanks |
Thanks for your update!
Yes, exactly - it's one go with the fullscreen: the image viewer opens and immediately overlays the entire screen (black background) and at the same time the status bars top/bottom tween out. |
FYI we found a Sony handset (Xperia 5 III) but it has Android 13 on it. When the PNG is opened, it's not full screen, and we again can't reproduce it. Just checking, do you know what actual app the PNG opens in? When I click on the PNG, it seems to be in the "Photos" app, it has icons near the bottom saying "Share" and "Lens" which is what I also get if I manually open Google Photos and click on a photo (well, then I also get Edit and Delete options, but it's basically the same activity). thanks |
The PNG is opened with the same view as if you would select it from within the "Albums" app (The app with the orange landscape image https://images.app.goo.gl/Wpc1Ty59tzBSDzSf6). When opened from the AIR app, it is the same view but does not contain all the UI elements:
The view of the image, which gets opened from default albums app (not AIR) has the same behavior as in the AIR app: it will go fullscreen and fade out the control bars (top/bottom) so you will initially only see the image fullscreen without any UI elements. Clicking on the image then will reveal the UI elements (status bars, 3-button default Android navigation (with the "back" button etc) and also the buttons to share, edit or delete at the bottom, the back button at the top left and the kebab menu at the top right. (Sorry, I can currently not share a screenshot, which would make things easier to see/understand). App seems to be called "Sony Album" (I'm having version 9.8.A.1.2 on my phone). There seems to be an APK available here from here: However, unsure about the website hosting this (may contain a risk..) |
Ah - great, so I have managed to download and install the "Albums" application and set this up as the default. And now we have just reproduced it...! This is on the Sony Xperia, Android 13... I guess some side-effect of the interactions between the different applications/views. We should be able to take it from here, thanks for your patience! :-) |
Ah, very good! 😀 |
Side Note: Thinking about this, the issue may be a bit more "large-scale" than just with this specific image viewer. Basically, opening anything with an app that goes fullscreen, would/could cause this, right? I never tested it but are all apps, when using |
I guess anything that pushes the app into a full-screen mode may cause the same problem, yes. I think we will need to just check for this and dispatch the full screen event. Although it sounds like we need to check for some other odd behaviour:
In terms of |
Attached is a sample project for Android with the following scenario:
Enviroment:
Application:
stage.displayState = StageDisplayState.NORMAL
)Issue and how to reproduce:
file.openWithDefaultApplication
Event.RESIZE
will trigger whereasEvent.FULLSCREEN
will notActual issue:
What it looks like in the end:
Sample project:
FullscreenIssue.zip
Source:
The text was updated successfully, but these errors were encountered: