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

Commit 55cdee27 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 am: 85768b37

am: 051c1b29

Change-Id: Ib75d421f6b4a4ee97006a3427bb4b1111c5ece2f
parents a861beea 051c1b29
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -792,6 +792,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedFragment
            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;
@@ -800,6 +801,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedFragment
                    v.setPressed(true);
                    v.setPressed(false);
                    mHighlightPosition = -1;
                });
            }
        }
    }