Refresh title in the Network details header

- Since the title information may be updated later, it needs to be refreshed continuously to display the latest results.

Bug: 299514568
Test: manual test
atest -c WifiDetailPreferenceController2Test

Merged-In: I4634c152b550c59bd9854cde1b91da44442aa879
Change-Id: I4634c152b550c59bd9854cde1b91da44442aa879
This commit is contained in:
Weng Su
2023-09-14 22:54:56 +08:00
parent f673fe0435
commit fafdf08535
2 changed files with 3 additions and 2 deletions

View File

@@ -305,6 +305,8 @@ public class WifiDetailPreferenceController2Test {
ShadowEntityHeaderController.setUseMock(mMockHeaderController);
// builder pattern
when(mMockHeaderController.setLabel(any(CharSequence.class)))
.thenReturn(mMockHeaderController);
when(mMockHeaderController.setRecyclerView(mMockFragment.getListView(), mLifecycle))
.thenReturn(mMockHeaderController);
when(mMockHeaderController.setSummary(nullable(String.class)))