Potential fix for Settings screen ClassCast exception on the phone.
Bug: 3273396 Change-Id: I92477dc8d5e864027923c52545069710dff3575a
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user