Use new api to create InteractionJankMonitor.Configuration.Builder

The api to create InteractionJankMonitor.Configuration.Builder has
changed, adopt the new api.

Bug: 170708749
Test: build pass
Change-Id: I627370fed43630750eab2ec9752338fb03753463
This commit is contained in:
Ahan Wu
2021-07-11 23:26:03 -08:00
parent b1bd0b6d26
commit a551ea537c

View File

@@ -158,8 +158,7 @@ public abstract class InstrumentedPreferenceFragment extends ObservablePreferenc
switch (newState) { switch (newState) {
case RecyclerView.SCROLL_STATE_DRAGGING: case RecyclerView.SCROLL_STATE_DRAGGING:
final Configuration.Builder builder = final Configuration.Builder builder =
new Configuration.Builder(CUJ_SETTINGS_PAGE_SCROLL) Configuration.Builder.withView(CUJ_SETTINGS_PAGE_SCROLL, recyclerView)
.setView(recyclerView)
.setTag(mClassName); .setTag(mClassName);
mMonitor.begin(builder); mMonitor.begin(builder);
break; break;