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

Commit 3e860404 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Potential fix for Settings screen ClassCast exception on the phone.

Bug: 3273396
Change-Id: I92477dc8d5e864027923c52545069710dff3575a
parent 63703876
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);