Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a6365ae authored by Zhen Zhang's avatar Zhen Zhang
Browse files

Fix bug: NullPointerException in ChooserActivity

Add a null check for mResolverDrawerLayout in ChooserActivity

Bug: 162900698
Test: ChooserActivityTest
Change-Id: Id2b4442a0c5f22e1ecff04a1d20b48784ecc47dd
parent 96540963
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3134,8 +3134,10 @@ 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);
        if (mResolverDrawerLayout != null) {
            mResolverDrawerLayout.scrollNestedScrollableChildBackToTop();
        }
    }

    @Override
    protected WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {