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

Commit 1d07de56 authored by Qi Ding's avatar Qi Ding Committed by android-build-merger
Browse files

Merge "Fix searched item isn't highlighted"

am: 363c529d

Change-Id: I57e09b8403422338c80bd369d41822bf26383361
parents 7b357f0b 363c529d
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;
                });
            }
        }
    }