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

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

Merge "Fix calling startActivity() crash"

parents 4e299670 9a7c9520
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -165,7 +165,13 @@ final class SaveUi {
        mComponentName = componentName;
        mCompatMode = compatMode;

        context = new ContextThemeWrapper(context, mThemeId);
        context = new ContextThemeWrapper(context, mThemeId) {
            @Override
            public void startActivity(Intent intent) {
                intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                super.startActivity(intent);
            }
        };
        final LayoutInflater inflater = LayoutInflater.from(context);
        final View view = inflater.inflate(R.layout.autofill_save, null);