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

Commit 7da1e7d3 authored by Mark Renouf's avatar Mark Renouf
Browse files

Remove 'startAsCallerImpl' refactoring relic

Change-Id: Ica2a2dc2bf1bc758349f02d685738c2c844b566f
parent 05a2ef26
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1458,15 +1458,6 @@ public class ResolverActivity extends Activity implements
                .write();
    }


    public boolean startAsCallerImpl(Intent intent, Bundle options, boolean ignoreTargetSecurity,
            int userId) {
        // Note: this method will be overridden in the delegate implementation to use the passed-in
        // permission token.
        startActivityAsCaller(intent, options, false, userId);
        return true;
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        switch (requestCode) {
+2 −3
Original line number Diff line number Diff line
@@ -173,9 +173,8 @@ public class DisplayResolveInfo implements TargetInfo, Parcelable {

    @Override
    public boolean startAsCaller(ResolverActivity activity, Bundle options, int userId) {
        // TODO: if the start-as-caller API no longer requires a permission token, this can go back
        // to inlining the real activity-start call, and we can remove startAsCallerImpl.
        return activity.startAsCallerImpl(mResolvedIntent, options, false, userId);
        activity.startActivityAsCaller(mResolvedIntent, options, false, userId);
        return true;
    }

    @Override
+2 −1
Original line number Diff line number Diff line
@@ -241,7 +241,8 @@ public final class SelectableTargetInfo implements ChooserTargetInfo {
        final boolean ignoreTargetSecurity = mSourceInfo != null
                && mSourceInfo.getResolvedComponentName().getPackageName()
                .equals(mChooserTarget.getComponentName().getPackageName());
        return activity.startAsCallerImpl(intent, options, ignoreTargetSecurity, userId);
        activity.startActivityAsCaller(intent, options, ignoreTargetSecurity, userId);
        return true;
    }

    @Override