Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 363c529d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix searched item isn't highlighted"

parents 00a2619a c4772636
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -757,6 +757,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
            super.onBindViewHolder(holder, position);
            if (position == mHighlightPosition) {
                View v = holder.itemView;
                v.post(() -> {
                    if (v.getBackground() != null) {
                        final int centerX = v.getWidth() / 2;
                        final int centerY = v.getHeight() / 2;
@@ -765,6 +766,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
                    v.setPressed(true);
                    v.setPressed(false);
                    mHighlightPosition = -1;
                });
            }
        }
    }