[Android] SoftInputMode works with initial value (#465)
authorSamantha Houts <samantha@teamredwall.com>
Thu, 20 Oct 2016 20:24:09 +0000 (13:24 -0700)
committerJason Smith <jason.smith@xamarin.com>
Thu, 20 Oct 2016 20:24:08 +0000 (13:24 -0700)
Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs
Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs

index 83a2950..07e0297 100644 (file)
@@ -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);
 
index c8795c6..0a2397d 100644 (file)
@@ -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);