Open txfyxzzy opened 2 years ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @txfyxzzy, thanks for reporting. I was able to reproduce the same behaviour. That being said, I'll notify an engineer and see what we can do here. Thanks!
Tracked internally at b/225188096
Here are some observations by our engineers:
It works if I delete the "android:configChanges" line, or set its value to:
- android:configChanges="orientation"
- android:configChanges="screenSize"
- android:configChanges="keyboardHidden"
- android:configChanges="orientation|keyboardHidden"
- android:configChanges="screenSize|keyboardHidden" But it doesn't work if I set its value to:
- android:configChanges="orientation|screenSize"
- android:configChanges="orientation|screenSize|keyboardHidden"
Upon investigation of our engineers, the issue was because of the "android:configChanges" being set which tells android OS that the OS doesn't need to do an activity restart to handle the config change as the developer will be handling it.
But in FIAM implementation, we are depending up on the OS to handle the config change and there by inflating a new layout (layout for landscape mode in this case) which matches the new config.
As of now we don't have any api exposed for the developer to communicate the config change if our developers are handling it by themselves.
So as a result, this is considered as a feature request. I've marked this for now, and our engineers can take a look into this deeper and discuss this further for future plans.
[READ] Step 1: Are you in the right place?
Yes
[REQUIRED] Step 2: Describe your environment
firebase-inappmessaging-display:20.1.1
Android Studio version: __Arctic Fox | 2020.3.1 Patch3___
Firebase Component: _inappmessaging-display
Component version: _20.1.1
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Relevant Code:
AndroidMainfest.xml <activity ... android:configChanges="orientation|screenSize|keyboardHidden" />
ScreenRecords