commit | e37e75983e4f98380b0269f67481ebc538b691f9 | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Thu Jun 04 17:46:13 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 04 17:46:13 2020 +0000 |
tree | 20c364695085cf89a3380624c4060b66fa6f7318 | |
parent | 47de38f463e5864c3471876b6faf615f1608cd10 [diff] | |
parent | 1033c500cf997a3fd20ff019171564f2d0aba7dd [diff] |
Remove usage of deprecated toolbar methods am: 1033c500cf Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/SettingsIntelligence/+/11723392 Change-Id: I8b76d73640d1a0ce17e35e92640e2641fab64a33
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 {