mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
Blink found settings text
This commit is contained in:
parent
d85cbbe7d7
commit
7e9202f83e
1 changed files with 23 additions and 0 deletions
|
@ -262,6 +262,29 @@ public class FragmentOptions extends FragmentBase {
|
|||
FragmentBase fragment = (FragmentBase) adapter.instantiateItem(pager, tab);
|
||||
fragment.scrollTo(resid);
|
||||
menuSearch.collapseActionView();
|
||||
|
||||
// Blink found text
|
||||
View view = fragment.getView();
|
||||
if (view != null) {
|
||||
View child = view.findViewById(resid);
|
||||
if (child != null) {
|
||||
int c = Helper.resolveColor(view.getContext(), R.attr.colorHighlight);
|
||||
Drawable b = child.getBackground();
|
||||
child.post(new Runnable() {
|
||||
private int count = 0;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (count % 2 == 1)
|
||||
child.setBackground(b);
|
||||
else
|
||||
child.setBackgroundColor(c);
|
||||
if (++count <= 7)
|
||||
child.postDelayed(this, 250);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue