mirror of
https://github.com/bitwarden/android.git
synced 2025-01-11 18:57:39 +03:00
cleanup search page for ios
This commit is contained in:
parent
c79d1d24b3
commit
77314d4b8d
2 changed files with 11 additions and 13 deletions
|
@ -15,13 +15,11 @@
|
||||||
<pages:CiphersPageViewModel />
|
<pages:CiphersPageViewModel />
|
||||||
</ContentPage.BindingContext>
|
</ContentPage.BindingContext>
|
||||||
|
|
||||||
<ContentPage.ToolbarItems>
|
|
||||||
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
|
|
||||||
</ContentPage.ToolbarItems>
|
|
||||||
|
|
||||||
<ContentPage.Resources>
|
<ContentPage.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<u:DateTimeConverter x:Key="dateTime" />
|
<u:DateTimeConverter x:Key="dateTime" />
|
||||||
|
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1"
|
||||||
|
x:Name="_closeItem" x:Key="closeItem" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ContentPage.Resources>
|
</ContentPage.Resources>
|
||||||
|
|
||||||
|
@ -31,12 +29,14 @@
|
||||||
VerticalOptions="FillAndExpand"
|
VerticalOptions="FillAndExpand"
|
||||||
HorizontalOptions="FillAndExpand"
|
HorizontalOptions="FillAndExpand"
|
||||||
Spacing="0"
|
Spacing="0"
|
||||||
Padding="0">
|
Padding="0"
|
||||||
|
x:Name="_titleLayout">
|
||||||
<controls:MiButton
|
<controls:MiButton
|
||||||
StyleClass="btn-title, btn-title-platform"
|
StyleClass="btn-title, btn-title-platform"
|
||||||
Text=""
|
Text=""
|
||||||
VerticalOptions="CenterAndExpand"
|
VerticalOptions="CenterAndExpand"
|
||||||
Clicked="BackButton_Clicked" />
|
Clicked="BackButton_Clicked"
|
||||||
|
x:Name="_backButton" />
|
||||||
<SearchBar
|
<SearchBar
|
||||||
x:Name="_searchBar"
|
x:Name="_searchBar"
|
||||||
HorizontalOptions="FillAndExpand"
|
HorizontalOptions="FillAndExpand"
|
||||||
|
|
|
@ -40,9 +40,10 @@ namespace Bit.App.Pages
|
||||||
_vm.PageTitle = AppResources.SearchVault;
|
_vm.PageTitle = AppResources.SearchVault;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.Android)
|
if(Device.RuntimePlatform == Device.iOS)
|
||||||
{
|
{
|
||||||
ToolbarItems.RemoveAt(0);
|
ToolbarItems.Add(_closeItem);
|
||||||
|
_titleLayout.Children.Remove(_backButton);
|
||||||
}
|
}
|
||||||
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
||||||
}
|
}
|
||||||
|
@ -121,12 +122,9 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void Close_Clicked(object sender, System.EventArgs e)
|
private void Close_Clicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if(DoOnce())
|
GoBack();
|
||||||
{
|
|
||||||
await Navigation.PopModalAsync();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue