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