Blink found settings text

pull/199/head
M66B 4 years ago
parent d85cbbe7d7
commit 7e9202f83e

@ -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…
Cancel
Save