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

Commit 8653748a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix a NPE when highlighting fingerprint row."

parents 429c7871 13c7e686
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -605,6 +605,10 @@ public class FingerprintSettings extends SubSettings {
            final Drawable highlight = getHighlightDrawable();
            if (highlight != null && fpref != null) {
                final View view = fpref.getView();
                if (view == null) {
                    // FingerprintPreference is not bound to UI yet, so view is null.
                    return;
                }
                final int centerX = view.getWidth() / 2;
                final int centerY = view.getHeight() / 2;
                highlight.setHotspot(centerX, centerY);