mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
parent
bbea5fe53c
commit
9e1abb13a3
2 changed files with 15 additions and 19 deletions
|
@ -34,21 +34,19 @@ namespace Bit.App.Controls
|
||||||
|
|
||||||
public ExtendedEditor Editor { get; private set; }
|
public ExtendedEditor Editor { get; private set; }
|
||||||
|
|
||||||
/*
|
|
||||||
private void FormEditorCell_Tapped(object sender, EventArgs e)
|
private void FormEditorCell_Tapped(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Editor.Focus();
|
Editor.Focus();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
public void InitEvents()
|
public void InitEvents()
|
||||||
{
|
{
|
||||||
// Tapped += FormEditorCell_Tapped;
|
Tapped += FormEditorCell_Tapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
// Tapped -= FormEditorCell_Tapped;
|
Tapped -= FormEditorCell_Tapped;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Bit.App.Controls
|
||||||
public class FormEntryCell : ExtendedViewCell, IDisposable
|
public class FormEntryCell : ExtendedViewCell, IDisposable
|
||||||
{
|
{
|
||||||
private VisualElement _nextElement;
|
private VisualElement _nextElement;
|
||||||
// private TapGestureRecognizer _tgr;
|
private TapGestureRecognizer _tgr;
|
||||||
private StackLayout _buttonStackLayout = null;
|
private StackLayout _buttonStackLayout = null;
|
||||||
|
|
||||||
public FormEntryCell(
|
public FormEntryCell(
|
||||||
|
@ -64,7 +64,7 @@ namespace Bit.App.Controls
|
||||||
|
|
||||||
if(imageSource != null)
|
if(imageSource != null)
|
||||||
{
|
{
|
||||||
// _tgr = new TapGestureRecognizer();
|
_tgr = new TapGestureRecognizer();
|
||||||
|
|
||||||
var theImage = new CachedImage
|
var theImage = new CachedImage
|
||||||
{
|
{
|
||||||
|
@ -74,7 +74,7 @@ namespace Bit.App.Controls
|
||||||
WidthRequest = 18,
|
WidthRequest = 18,
|
||||||
HeightRequest = 18
|
HeightRequest = 18
|
||||||
};
|
};
|
||||||
// theImage.GestureRecognizers.Add(_tgr);
|
theImage.GestureRecognizers.Add(_tgr);
|
||||||
|
|
||||||
imageStackLayout.Children.Add(theImage);
|
imageStackLayout.Children.Add(theImage);
|
||||||
}
|
}
|
||||||
|
@ -188,15 +188,14 @@ namespace Bit.App.Controls
|
||||||
Entry.Completed += Entry_Completed;
|
Entry.Completed += Entry_Completed;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(_tgr != null)
|
if(_tgr != null)
|
||||||
// {
|
{
|
||||||
// _tgr.Tapped += Tgr_Tapped;
|
_tgr.Tapped += Tgr_Tapped;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Tapped += FormEntryCell_Tapped;
|
Tapped += FormEntryCell_Tapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
private void Tgr_Tapped(object sender, EventArgs e)
|
private void Tgr_Tapped(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Entry.Focus();
|
Entry.Focus();
|
||||||
|
@ -206,7 +205,6 @@ namespace Bit.App.Controls
|
||||||
{
|
{
|
||||||
Entry.Focus();
|
Entry.Focus();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
private void Entry_Completed(object sender, EventArgs e)
|
private void Entry_Completed(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -215,12 +213,12 @@ namespace Bit.App.Controls
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
// if(_tgr != null)
|
if(_tgr != null)
|
||||||
// {
|
{
|
||||||
// _tgr.Tapped -= Tgr_Tapped;
|
_tgr.Tapped -= Tgr_Tapped;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Tapped -= FormEntryCell_Tapped;
|
Tapped -= FormEntryCell_Tapped;
|
||||||
Entry.Completed -= Entry_Completed;
|
Entry.Completed -= Entry_Completed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue