private void updateTitle() {
final String newTitle = getTitle();
if (newTitle == null) {
Log.d(LOGTAG, "No new title to show.");
return;
}
final PreferenceActivity activity = (PreferenceActivity) getActivity();
if (Versions.feature11Plus && activity.isMultiPane()) {
// In a multi-pane activity, the title is "Settings", and the action
// bar is along the top of the screen. We don't want to change those.
activity.showBreadCrumbs(newTitle, newTitle);
return;
}
Log.v(LOGTAG, "Setting activity title to " + newTitle);
activity.setTitle(newTitle);
if (Versions.feature14Plus) {
final ActionBar actionBar = activity.getActionBar();
if (actionBar != null) {
actionBar.setTitle(newTitle);
}
}
}
GeckoPreferenceFragment.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:mc_backup
作者:
评论列表
文章目录