1
0
Fork 0
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:
M66B 2021-07-08 13:19:05 +02:00
parent d85cbbe7d7
commit 7e9202f83e

View file

@ -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;