diff options
-rw-r--r-- | Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs | 4 | ||||
-rw-r--r-- | Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs index ab2fb61a..794c466e 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs @@ -126,6 +126,8 @@ namespace Xamarin.Forms.Platform.Android (application as IApplicationController)?.SetAppIndexingProvider(new AndroidAppIndexProvider(this)); Xamarin.Forms.Application.Current = application; + SetSoftInputMode(); + CheckForAppLink(Intent); application.PropertyChanged += AppOnPropertyChanged; @@ -167,8 +169,6 @@ namespace Xamarin.Forms.Platform.Android SetSupportActionBar(bar); - SetSoftInputMode(); - _layout = new ARelativeLayout(BaseContext); SetContentView(_layout); diff --git a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs index c8795c6a..0a2397d8 100644 --- a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs +++ b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs @@ -106,6 +106,8 @@ namespace Xamarin.Forms.Platform.Android _application = application; Xamarin.Forms.Application.Current = application; + SetSoftInputMode(); + application.PropertyChanged += AppOnPropertyChanged; SetMainPage(); @@ -127,8 +129,6 @@ namespace Xamarin.Forms.Platform.Android base.OnCreate(savedInstanceState); - SetSoftInputMode(); - _layout = new LinearLayout(BaseContext); SetContentView(_layout); |