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

[Android] Stage color not render on app start with Samsung Galaxy S9 #1002

Closed
itlancer opened this issue Jul 22, 2021 · 1 comment
Closed

Comments

@itlancer
Copy link

Problem Description

Stage color not render on app start with Samsung Galaxy S9

Tested with latest AIR 33.1.1.533 and 33.1.1.554 versions.
Tested with Samsung Galaxy S9 (SM-G960F) Android 9 device.
Tested with "direct" renderMode. Didn't tried others.
There is no such issue found with other Android devices.

Device (phone) rotation (orientation change) seems to "fix" this issue.

Related issues (not the same):
#964
#6

Steps to Reproduce

Launch code below with Samsung Galaxy S9 device. It will just show red stage color.

Application example with sources and application xml attached.
stage_color_bug.zip

package {
	import flash.display.Sprite;
	import flash.events.Event;
	
	public class StageColorBug extends Sprite {
		
		public function StageColorBug() {
			addEventListener(Event.ADDED_TO_STAGE, addedToStage);
		}
		
		private function addedToStage(e:Event):void {
			stage.color = 0xff0000;//Red color
			trace("addedToStage");
		}
	}
}

Actual Result:
Application render white screen instead of red. Look at video:

stage_color_bug.mp4

Expected Result:
Application correctly render red color of stage.

Known Workarounds

Draw DisplayObject at the bottom with necessary color. But such approach has less performance.
or
Make few Stage::setOrientation calls with different orientation. But it cause incorrect UX.

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

No branches or pull requests

2 participants