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

Commit 32922ca4 authored by Matt Pietal's avatar Matt Pietal
Browse files

Sharesheet - Fix NPE on default app launch

Turns out there's a secondary layout used by resolver which does not
contain R.id.empty. Check for null.

Bug: 133707284
Test: Open PDF file through resolver
Change-Id: I311f1c1d2fa6edcebc81d9056755884b1585a7cb
parent 2cf040d6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -383,9 +383,11 @@ public class ResolverActivity extends Activity {
                mSystemWindowInsets.right, 0);

        View emptyView = findViewById(R.id.empty);
        if (emptyView != null) {
            emptyView.setPadding(0, 0, 0, mSystemWindowInsets.bottom
                    + getResources().getDimensionPixelSize(
                            R.dimen.chooser_edge_margin_normal) * 2);
        }

        if (mFooterSpacer == null) {
            mFooterSpacer = new Space(getApplicationContext());