Merge "Fix bug: NullPointerException in ChooserActivity" into rvc-qpr-dev

This commit is contained in:
Zhen Zhang
2020-08-05 21:31:39 +00:00
committed by Android (Google) Code Review

View File

@@ -3134,7 +3134,9 @@ public class ChooserActivity extends ResolverActivity implements
// ends up disabled. That's because at some point the old tab's vertical scrolling is
// disabled and the new tab's is enabled. For context, see b/159997845
setVerticalScrollEnabled(true);
mResolverDrawerLayout.scrollNestedScrollableChildBackToTop();
if (mResolverDrawerLayout != null) {
mResolverDrawerLayout.scrollNestedScrollableChildBackToTop();
}
}
@Override