summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-10-20 20:24:09 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-10-26 17:47:40 (GMT)
commit9195089b81bd1f47b7864aa62b833a67703f84a7 (patch)
treee4c4a68fdeff39be3d83c19cec59d75d9b618890
parentdb0c1b33ee584a62a3e6aeb7ede4f73824faba52 (diff)
downloadxamarin-forms-9195089b81bd1f47b7864aa62b833a67703f84a7.zip
xamarin-forms-9195089b81bd1f47b7864aa62b833a67703f84a7.tar.gz
xamarin-forms-9195089b81bd1f47b7864aa62b833a67703f84a7.tar.bz2
[Android] SoftInputMode works with initial value (#465)
-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 ab2fb61..794c466 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);