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

Commit 051c1b29 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

Change-Id: I7bb1c3b3a5dbb1ee4e6d8934a7be542076d1e863
parents 95e41c7b 85768b37
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -758,6 +758,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;
@@ -766,6 +767,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
                    v.setPressed(true);
                    v.setPressed(false);
                    mHighlightPosition = -1;
                });
            }
        }
    }