mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
no options during selection mode
This commit is contained in:
parent
45fbdb8411
commit
94fbf627ba
2 changed files with 22 additions and 5 deletions
|
@ -15,6 +15,8 @@
|
||||||
<ContentPage.Resources>
|
<ContentPage.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<u:InverseBoolConverter x:Key="inverseBool" />
|
<u:InverseBoolConverter x:Key="inverseBool" />
|
||||||
|
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1"
|
||||||
|
x:Name="_closeItem" x:Key="closeItem" />
|
||||||
<ToolbarItem Text="{u:I18n Select}"
|
<ToolbarItem Text="{u:I18n Select}"
|
||||||
Clicked="Select_Clicked"
|
Clicked="Select_Clicked"
|
||||||
Order="Primary"
|
Order="Primary"
|
||||||
|
|
|
@ -22,15 +22,22 @@ namespace Bit.App.Pages
|
||||||
_selectAction = selectAction;
|
_selectAction = selectAction;
|
||||||
if(selectAction != null)
|
if(selectAction != null)
|
||||||
{
|
{
|
||||||
|
if(Device.RuntimePlatform == Device.iOS)
|
||||||
|
{
|
||||||
|
ToolbarItems.Add(_closeItem);
|
||||||
|
}
|
||||||
ToolbarItems.Add(_selectItem);
|
ToolbarItems.Add(_selectItem);
|
||||||
}
|
}
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
|
||||||
{
|
|
||||||
ToolbarItems.Add(_moreItem);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(_historyItem);
|
if(Device.RuntimePlatform == Device.iOS)
|
||||||
|
{
|
||||||
|
ToolbarItems.Add(_moreItem);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ToolbarItems.Add(_historyItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,5 +105,13 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
await _vm.SliderChangedAsync();
|
await _vm.SliderChangedAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async void Close_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(DoOnce())
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue