From ad776f942b0d3ebe625ec3ad2ba928839ee6aeb9 Mon Sep 17 00:00:00 2001 From: Samantha Houts Date: Thu, 20 Oct 2016 13:24:09 -0700 Subject: [Android] SoftInputMode works with initial value (#465) --- Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs | 4 ++-- Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Xamarin.Forms.Platform.Android') diff --git a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs index 83a2950c..07e02977 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); -- cgit v1.2.3