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

Commit 4691ed41 authored by Alison Cichowlas's avatar Alison Cichowlas
Browse files

Flag off new Chooser behavior.

Bug: 119480958
Test: Manual
Change-Id: Ide635d08c128c48d8ec488f6d2d5b915e21e82f4
parent 4e7b7c1a
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