mirror of
https://github.com/bitwarden/mobile
synced 2024-12-28 17:50:52 +01:00
next return if nextelement set later
This commit is contained in:
parent
3ae6e3ee53
commit
5a88a66709
@ -21,8 +21,6 @@ namespace Bit.App.Controls
|
|||||||
Thickness? containerPadding = null,
|
Thickness? containerPadding = null,
|
||||||
bool useButton = false)
|
bool useButton = false)
|
||||||
{
|
{
|
||||||
_nextElement = nextElement;
|
|
||||||
|
|
||||||
if(!useLabelAsPlaceholder)
|
if(!useLabelAsPlaceholder)
|
||||||
{
|
{
|
||||||
Label = new Label
|
Label = new Label
|
||||||
@ -50,10 +48,7 @@ namespace Bit.App.Controls
|
|||||||
Entry.Placeholder = labelText;
|
Entry.Placeholder = labelText;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nextElement != null)
|
NextElement = nextElement;
|
||||||
{
|
|
||||||
Entry.ReturnType = Enums.ReturnType.Next;
|
|
||||||
}
|
|
||||||
|
|
||||||
var imageStackLayout = new StackLayout
|
var imageStackLayout = new StackLayout
|
||||||
{
|
{
|
||||||
@ -145,6 +140,14 @@ namespace Bit.App.Controls
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
_nextElement = value;
|
_nextElement = value;
|
||||||
|
if(_nextElement != null && Entry != null)
|
||||||
|
{
|
||||||
|
Entry.ReturnType = Enums.ReturnType.Next;
|
||||||
|
}
|
||||||
|
else if(Entry != null)
|
||||||
|
{
|
||||||
|
Entry.ReturnType = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user