[Provider Model] Add progress bar to internet panel

- Show progress bar when Wi-Fi scanning

- Show "Searching for networks..." sub-title when Wi-Fi scanning

- Remove "Wi-Fi" from searching networks string

Bug: 178774497
Test: manual test
atest -c InternetConnectivityPanelTest
make RunSettingsRoboTests ROBOTEST_FILTER=PanelFragmentTest

Change-Id: Ic05b939bef3b106845fe90db41eb09f0e15756f4
This commit is contained in:
Weng Su
2021-04-29 10:20:11 +08:00
parent b4a9916adf
commit c407a2d9f8
9 changed files with 204 additions and 5 deletions

View File

@@ -48,6 +48,7 @@ public class FakePanelContent implements PanelContent {
private int mViewType;
private boolean mIsCustomizedButtonUsed = false;
private CharSequence mCustomizedButtonTitle;
private boolean mIsProgressBarVisible;
@Override
public IconCompat getIcon() {
@@ -117,4 +118,13 @@ public class FakePanelContent implements PanelContent {
public void setCustomizedButtonTitle(CharSequence title) {
mCustomizedButtonTitle = title;
}
@Override
public boolean isProgressBarVisible() {
return mIsProgressBarVisible;
}
public void setIsProgressBarVisible(boolean isProgressBarVisible) {
mIsProgressBarVisible = isProgressBarVisible;
}
}