mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
clear focus on cell
This commit is contained in:
parent
ff776e485a
commit
f25ab537f2
1 changed files with 6 additions and 1 deletions
|
@ -97,13 +97,18 @@ namespace Bit.Android.Controls
|
|||
|
||||
bool isHeader, nextIsHeader;
|
||||
var cell = GetCellForPosition(position, out isHeader, out nextIsHeader);
|
||||
var cellView = CellFactory.GetCell(cell, convertView, parent, Context, _view);
|
||||
if(layout.ChildCount > 0)
|
||||
{
|
||||
layout.RemoveViewAt(0);
|
||||
var cellView = CellFactory.GetCell(cell, convertView, parent, Context, _view);
|
||||
layout.AddView(cellView, 0);
|
||||
}
|
||||
|
||||
if(cellView.HasFocus)
|
||||
{
|
||||
cellView.ClearFocus();
|
||||
}
|
||||
|
||||
if(isHeader)
|
||||
{
|
||||
var textCell = layout.GetChildAt(0) as BaseCellView;
|
||||
|
|
Loading…
Reference in a new issue