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

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

Merge "Prevent app bar title from drawing twice" into sc-dev

parents 3dacd020 db5ca4ee
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -184,17 +184,19 @@ public class SettingsBaseActivity extends FragmentActivity {
    public void setTitle(CharSequence title) {
        if (mCollapsingToolbarLayout != null) {
            mCollapsingToolbarLayout.setTitle(title);
        }
        } else {
            super.setTitle(title);
        }
    }

    @Override
    public void setTitle(int titleId) {
        if (mCollapsingToolbarLayout != null) {
            mCollapsingToolbarLayout.setTitle(getText(titleId));
        }
        } else {
            super.setTitle(titleId);
        }
    }

    /**
     * SubSetting page should show a toolbar by default. If the page wouldn't show a toolbar,