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