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

Commit 85768b37 authored by Qi Ding's avatar Qi Ding Committed by android-build-merger
Browse files

Merge "Fix searched item isn't highlighted" am: 363c529d

am: 1d07de56

Change-Id: I908c237db46ffcca743b66dd1c5fa5b0fab17a06
parents 9506876a 1d07de56
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;
                });
            }
        }
    }