commit | 849af4cd9764498d6bc513b02ee8a4b1c625202f | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Thu Jun 04 17:57:59 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 04 17:57:59 2020 +0000 |
tree | 203dd64aaa7ee0404389c16adbc0847baf8d5d9a | |
parent | 081adde048d197946e1e17a7fb7aa8a885b05968 [diff] | |
parent | e37e75983e4f98380b0269f67481ebc538b691f9 [diff] |
Remove usage of deprecated toolbar methods am: 1033c500cf am: e37e75983e Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/SettingsIntelligence/+/11723392 Change-Id: I498aff60aa83f1c4b16d8982bb3e09122e814dd6
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 {