Remove usage of deprecated toolbar methods
Bug: 157270980
Test: Compiling / presubmits
Change-Id: Ic14291a9d46144feb2d802a23a57d24ef0ab4646
diff --git a/src/com/android/settings/intelligence/search/car/CarSearchFragment.java b/src/com/android/settings/intelligence/search/car/CarSearchFragment.java
index 6a580ab..0c49b11 100644
--- a/src/com/android/settings/intelligence/search/car/CarSearchFragment.java
+++ b/src/com/android/settings/intelligence/search/car/CarSearchFragment.java
@@ -158,11 +158,7 @@
// If indexing is not finished, register the query text, but don't search.
if (!mSearchFeatureProvider.isIndexingComplete(getActivity())) {
- if (!isEmptyQuery) {
- mToolbar.showProgressBar();
- } else {
- mToolbar.hideProgressBar();
- }
+ mToolbar.getProgressBar().setVisible(!isEmptyQuery);
return;
}
@@ -228,7 +224,7 @@
if (getActivity() == null) {
return;
}
- mToolbar.hideProgressBar();
+ mToolbar.getProgressBar().setVisible(false);
if (mShowingSavedQuery) {
mSavedQueryController.loadSavedQueries();
} else {