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

Commit 296ca9e9 authored by sanryhuang's avatar sanryhuang
Browse files

android:ui crash on longpress of empty tile

null pointer check because of resolveInfoForPosition is nullable

Test: manual
Bug: 62441400
Change-Id: I0a720f30f9e76d9bedf6175a6ba951bcf1707c47
parent 46eef8d0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -389,6 +389,10 @@ public class ChooserActivity extends ResolverActivity {

    @Override
    public void showTargetDetails(ResolveInfo ri) {
        if (ri == null) {
            return;
        }

        ComponentName name = ri.activityInfo.getComponentName();
        boolean pinned = mPinnedSharedPrefs.getBoolean(name.flattenToString(), false);
        ResolverTargetActionsDialogFragment f =