summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-10-20 20:24:09 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-10-20 20:24:08 (GMT)
commitad776f942b0d3ebe625ec3ad2ba928839ee6aeb9 (patch)
tree24904791256bd006ed4012ce1e9fc0be0ba43402 /Xamarin.Forms.Platform.Android
parentdbd4390c5bf22a3f43a0f2f9b5defe4a76c727f4 (diff)
downloadxamarin-forms-ad776f942b0d3ebe625ec3ad2ba928839ee6aeb9.zip
xamarin-forms-ad776f942b0d3ebe625ec3ad2ba928839ee6aeb9.tar.gz
xamarin-forms-ad776f942b0d3ebe625ec3ad2ba928839ee6aeb9.tar.bz2
[Android] SoftInputMode works with initial value (#465)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs4
-rw-r--r--Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs4
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 83a2950..07e0297 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 c8795c6..0a2397d 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);