commit | 3a937a63a986690547aec5221a8ca4229059f306 | [log] [tgz] |
---|---|---|
author | Jacqueline Huang <jacquelinehu@google.com> | Thu Oct 26 23:57:54 2023 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Oct 26 23:57:54 2023 +0000 |
tree | a51f4415298a51b43892aafbe01be965cfca677d | |
parent | d8ad7b77684ea8f6284808a2832c41f708dff42b [diff] | |
parent | dbb61e2b9cd82e07a835eab2dbea4b26389a048f [diff] |
Merge "Call super in setTitle in CollapsingToolbarBaseActivity" into main
diff --git a/packages/SettingsLib/CollapsingToolbarBaseActivity/src/com/android/settingslib/collapsingtoolbar/CollapsingToolbarDelegate.java b/packages/SettingsLib/CollapsingToolbarBaseActivity/src/com/android/settingslib/collapsingtoolbar/CollapsingToolbarDelegate.java index 155cfbb..b633337 100644 --- a/packages/SettingsLib/CollapsingToolbarBaseActivity/src/com/android/settingslib/collapsingtoolbar/CollapsingToolbarDelegate.java +++ b/packages/SettingsLib/CollapsingToolbarBaseActivity/src/com/android/settingslib/collapsingtoolbar/CollapsingToolbarDelegate.java
@@ -173,13 +173,12 @@ 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. */