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

Commit 4d05f28d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix SaveUi to properly resolve for instant apps."

parents 9ae7e955 6b712bb6
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
@@ -214,7 +215,13 @@ final class SaveUi {
                    return componentName;
                }
                intent.addFlags(Intent.FLAG_ACTIVITY_MATCH_EXTERNAL);
                return intent.resolveActivity(packageManager);
                final ActivityInfo ai =
                        intent.resolveActivityInfo(packageManager, PackageManager.MATCH_INSTANT);
                if (ai != null) {
                    return new ComponentName(ai.applicationInfo.packageName, ai.name);
                }

                return null;
            }
        };
        final LayoutInflater inflater = LayoutInflater.from(context);