Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Jan 21, 2022
1 parent f652e48 commit 64d86cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private void updateTabStyles() {
tv_tab_title.setText(tv_tab_title.getText().toString().toUpperCase());
}

if (mTextBold == TEXT_BOLD_BOTH || mTextBold == TEXT_BOLD_WHEN_SELECT) {
if (mTextBold == TEXT_BOLD_BOTH || (i == mCurrentTab && mTextBold == TEXT_BOLD_WHEN_SELECT)) {
tv_tab_title.getPaint().setFakeBoldText(true);
} else if (mTextBold == TEXT_BOLD_NONE) {
tv_tab_title.getPaint().setFakeBoldText(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private void updateTabStyles() {
tv_tab_title.setText(tv_tab_title.getText().toString().toUpperCase());
}

if (mTextBold == TEXT_BOLD_BOTH || mTextBold == TEXT_BOLD_WHEN_SELECT) {
if (mTextBold == TEXT_BOLD_BOTH || (i == mCurrentTab && mTextBold == TEXT_BOLD_WHEN_SELECT)) {
tv_tab_title.getPaint().setFakeBoldText(true);
} else if (mTextBold == TEXT_BOLD_NONE) {
tv_tab_title.getPaint().setFakeBoldText(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private void updateTabStyles() {
tv_tab_title.setText(tv_tab_title.getText().toString().toUpperCase());
}

if (mTextBold == TEXT_BOLD_BOTH || mTextBold == TEXT_BOLD_WHEN_SELECT) {
if (mTextBold == TEXT_BOLD_BOTH || (i == mCurrentTab && mTextBold == TEXT_BOLD_WHEN_SELECT)) {
tv_tab_title.getPaint().setFakeBoldText(true);
} else if (mTextBold == TEXT_BOLD_NONE) {
tv_tab_title.getPaint().setFakeBoldText(false);
Expand Down

0 comments on commit 64d86cf

Please sign in to comment.