Bug 1352108 - Add missing attributes to custom tab activity declaration. r=sebastian

Not handling the appropriate configuration changes means that e.g. each rotation destroys and recreates the CustomTabActivity, which'll introduce a slight delay until we eventually repaint the web content.

As for the soft input mode, if we don't specify adjustResize, then the IME might actually simply overlap our window and obscure the end of content if the user has already scrolled down as far as possible.

MozReview-Commit-ID: BzBmIoGbhca

--HG--
extra : rebase_source : 8746621d8fec712e37aac4efdd76da6b0c3b396f
This commit is contained in:
Jan Henning 2017-04-24 21:05:39 +02:00
parent 22626693d8
commit f5375aad23

View File

@ -312,8 +312,11 @@
#ifdef MOZ_ANDROID_CUSTOM_TABS
<activity android:name="org.mozilla.gecko.customtabs.CustomTabsActivity"
android:theme="@style/GeckoCustomTabs" />
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|locale|layoutDirection|smallestScreenSize|screenLayout"
android:windowSoftInputMode="stateUnspecified|adjustResize"
android:theme="@style/GeckoCustomTabs" />
#endif
<activity android:name="org.mozilla.gecko.webapps.WebAppActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />