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

Commit 277ff273 authored by Alison Cichowlas's avatar Alison Cichowlas Committed by Android (Google) Code Review
Browse files

Merge "Flag off new Chooser behavior."

parents c82fb62e 4691ed41
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -93,6 +93,9 @@ import java.util.Set;
@UiThread
public class ResolverActivity extends Activity {

    // Temporary flag for new chooser delegate behavior.
    boolean mEnableChooserDelegate = false;

    protected ResolveListAdapter mAdapter;
    private boolean mSafeForwardingMode;
    private AbsListView mAdapterView;
@@ -1216,7 +1219,13 @@ public class ResolverActivity extends Activity {

        @Override
        public boolean startAsCaller(ResolverActivity activity, Bundle options, int userId) {

            if (mEnableChooserDelegate) {
                return activity.startAsCallerImpl(mResolvedIntent, options, false, userId);
            } else {
                activity.startActivityAsCaller(mResolvedIntent, options, null, false, userId);
                return true;
            }
        }

        @Override