commit | 9c268ce5a6f28bd61424fbddc3fd970835d6aba2 | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Thu Jun 04 17:46:32 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 04 17:46:32 2020 +0000 |
tree | 20c364695085cf89a3380624c4060b66fa6f7318 | |
parent | 247d62a9e99c6daf9421a3dd4b833a20baf24630 [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: I1345aa1bb7164137faf1190a8c802df0efe4356d
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 {