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

Commit dbb61e2b authored by Jacqueline Huang's avatar Jacqueline Huang
Browse files

Call super in setTitle in CollapsingToolbarBaseActivity

window title doesn't change because no call to super.setTitle. Call setOuterTitle in delegate so its callback will call super.setTitle.

```
Window: AccessibilityWindowInfo[title=Android Accessibility Suite, displayId=0, id=470, taskId=18, type=TYPE_APPLICATION, layer=0, region=SkRegion((0,0,1080,2340)), bounds=Rect(0, 0 - 1080, 2340), focused=true, active=true, pictureInPicture=false, hasParent=false, isAnchored=false, hasChildren=false]
```

Fix: 304648027
Test: manually verified
Change-Id: I4a290b87eee939e68920ee54a417fdc71ef48d18
parent 0900981d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -173,13 +173,12 @@ public class CollapsingToolbarDelegate {
        return mCoordinatorLayout;
    }

    /** Sets the title on the collapsing layout, delegating to host if needed. */
    /** Sets the title on the collapsing layout and delegates to host. */
    public void setTitle(CharSequence title) {
        if (mCollapsingToolbarLayout != null) {
            mCollapsingToolbarLayout.setTitle(title);
        } else {
            mHostCallback.setOuterTitle(title);
        }
        mHostCallback.setOuterTitle(title);
    }

    /** Returns an instance of collapsing toolbar. */