From f211b3a4da62b518fc1614c62f654e99a3f2086b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 19 Dec 2016 09:41:47 -0500 Subject: [PATCH] Resolve search bug on android 7 --- src/App/Pages/Vault/VaultListSitesPage.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App/Pages/Vault/VaultListSitesPage.cs b/src/App/Pages/Vault/VaultListSitesPage.cs index cd5b16487..f949b7d67 100644 --- a/src/App/Pages/Vault/VaultListSitesPage.cs +++ b/src/App/Pages/Vault/VaultListSitesPage.cs @@ -26,6 +26,7 @@ namespace Bit.App.Pages private readonly IClipboardService _clipboardService; private readonly ISyncService _syncService; private readonly IPushNotification _pushNotification; + private readonly IDeviceInfoService _deviceInfoService; private readonly ISettings _settings; private readonly bool _favorites; private bool _loadExistingData; @@ -42,6 +43,7 @@ namespace Bit.App.Pages _clipboardService = Resolver.Resolve(); _syncService = Resolver.Resolve(); _pushNotification = Resolver.Resolve(); + _deviceInfoService = Resolver.Resolve(); _settings = Resolver.Resolve(); var cryptoService = Resolver.Resolve(); @@ -99,6 +101,11 @@ namespace Bit.App.Pages }; Search.TextChanged += SearchBar_TextChanged; Search.SearchButtonPressed += SearchBar_SearchButtonPressed; + // Bug with searchbar on android 7, ref https://bugzilla.xamarin.com/show_bug.cgi?id=43975 + if(Device.OS == TargetPlatform.Android && _deviceInfoService.Version >= 24) + { + Search.HeightRequest = 50; + } Title = _favorites ? AppResources.Favorites : AppResources.MyVault;