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

Commit b170954d authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Potential fix for Settings screen ClassCast exception on the phone."

parents cfcea7a1 3e860404
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -990,6 +990,9 @@ public abstract class PreferenceActivity extends ListActivity implements
     */
    public void showBreadCrumbs(CharSequence title, CharSequence shortTitle) {
        if (mFragmentBreadCrumbs == null) {
            View crumbs = findViewById(android.R.id.title);
            // For screens with a different kind of title, don't create breadcrumbs.
            if (!(crumbs instanceof FragmentBreadCrumbs)) return;
            mFragmentBreadCrumbs = (FragmentBreadCrumbs) findViewById(android.R.id.title);
            if (mFragmentBreadCrumbs == null) {
                mFragmentBreadCrumbs = new FragmentBreadCrumbs(this);