mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
Resolve search bug on android 7
This commit is contained in:
parent
936f65ecc9
commit
f211b3a4da
1 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,7 @@ namespace Bit.App.Pages
|
||||||
private readonly IClipboardService _clipboardService;
|
private readonly IClipboardService _clipboardService;
|
||||||
private readonly ISyncService _syncService;
|
private readonly ISyncService _syncService;
|
||||||
private readonly IPushNotification _pushNotification;
|
private readonly IPushNotification _pushNotification;
|
||||||
|
private readonly IDeviceInfoService _deviceInfoService;
|
||||||
private readonly ISettings _settings;
|
private readonly ISettings _settings;
|
||||||
private readonly bool _favorites;
|
private readonly bool _favorites;
|
||||||
private bool _loadExistingData;
|
private bool _loadExistingData;
|
||||||
|
@ -42,6 +43,7 @@ namespace Bit.App.Pages
|
||||||
_clipboardService = Resolver.Resolve<IClipboardService>();
|
_clipboardService = Resolver.Resolve<IClipboardService>();
|
||||||
_syncService = Resolver.Resolve<ISyncService>();
|
_syncService = Resolver.Resolve<ISyncService>();
|
||||||
_pushNotification = Resolver.Resolve<IPushNotification>();
|
_pushNotification = Resolver.Resolve<IPushNotification>();
|
||||||
|
_deviceInfoService = Resolver.Resolve<IDeviceInfoService>();
|
||||||
_settings = Resolver.Resolve<ISettings>();
|
_settings = Resolver.Resolve<ISettings>();
|
||||||
|
|
||||||
var cryptoService = Resolver.Resolve<ICryptoService>();
|
var cryptoService = Resolver.Resolve<ICryptoService>();
|
||||||
|
@ -99,6 +101,11 @@ namespace Bit.App.Pages
|
||||||
};
|
};
|
||||||
Search.TextChanged += SearchBar_TextChanged;
|
Search.TextChanged += SearchBar_TextChanged;
|
||||||
Search.SearchButtonPressed += SearchBar_SearchButtonPressed;
|
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;
|
Title = _favorites ? AppResources.Favorites : AppResources.MyVault;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue