Merge "Fix the incorrect title of Panel" into rvc-dev am: 1f91111c3a

Change-Id: I4e7cbf75be6aca6a3573c42c32c27d7338d6b677
This commit is contained in:
Jason Chiu
2020-04-22 06:46:45 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 1 deletions

View File

@@ -201,6 +201,8 @@ public class PanelFragment extends Fragment {
final IconCompat icon = mPanel.getIcon();
if (icon == null) {
mTitleView.setVisibility(View.VISIBLE);
mPanelHeader.setVisibility(View.GONE);
mTitleView.setText(mPanel.getTitle());
} else {
mTitleView.setVisibility(View.GONE);
@@ -220,6 +222,7 @@ public class PanelFragment extends Fragment {
if (TextUtils.isEmpty(customTitle)) {
mSeeMoreButton.setVisibility(View.GONE);
} else {
mSeeMoreButton.setVisibility(View.VISIBLE);
mSeeMoreButton.setText(customTitle);
}
} else if (mPanel.getSeeMoreIntent() == null) {

View File

@@ -117,7 +117,7 @@ public class SettingsPanelActivity extends FragmentActivity {
if (!shouldForceCreation && fragment != null && fragment instanceof PanelFragment) {
final PanelFragment panelFragment = (PanelFragment) fragment;
panelFragment.setArguments(mBundle);
((PanelFragment) fragment).updatePanelWithAnimation();
panelFragment.updatePanelWithAnimation();
} else {
setContentView(R.layout.settings_panel);