1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-30 11:14:51 +02:00

next return if nextelement set later

This commit is contained in:
Kyle Spearrin 2017-10-20 16:51:30 -04:00
parent 3ae6e3ee53
commit 5a88a66709

View File

@ -21,8 +21,6 @@ namespace Bit.App.Controls
Thickness? containerPadding = null,
bool useButton = false)
{
_nextElement = nextElement;
if(!useLabelAsPlaceholder)
{
Label = new Label
@ -50,10 +48,7 @@ namespace Bit.App.Controls
Entry.Placeholder = labelText;
}
if(nextElement != null)
{
Entry.ReturnType = Enums.ReturnType.Next;
}
NextElement = nextElement;
var imageStackLayout = new StackLayout
{
@ -145,6 +140,14 @@ namespace Bit.App.Controls
set
{
_nextElement = value;
if(_nextElement != null && Entry != null)
{
Entry.ReturnType = Enums.ReturnType.Next;
}
else if(Entry != null)
{
Entry.ReturnType = null;
}
}
}