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

Commit c818f1b7 authored by Danesh Mondegarian's avatar Danesh Mondegarian
Browse files

NavRing : Fix FC on rotate

onAttachToWindow() is not guaranteed to be called prior to the framework
invoking commands on the panel. This patchset moves over initialization
over to onFinishInflate();

Reproduction steps :

1. Activate search panel view (long press home/swipe up from navbar)
2. Rotate device

Change-Id: I37b5b0de180040bdf1b521bcb8fc014b23c238df
parent 37ec53f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -137,6 +137,8 @@ public class SearchPanelView extends FrameLayout implements
        // TODO: fetch views
        mGlowPadView = (GlowPadView) findViewById(R.id.glow_pad_view);
        mGlowPadView.setOnTriggerListener(mGlowPadViewListener);
        updateSettings();
        setDrawables();
    }

    private void setDrawables() {
@@ -277,8 +279,6 @@ public class SearchPanelView extends FrameLayout implements
        super.onAttachedToWindow();

        mObserver.observe();
        updateSettings();
        setDrawables();
    }

    @Override