GeckoPreferenceFragment.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:mc_backup 作者:
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);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号