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

Commit 977e67bb authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by Android Git Automerger
Browse files

am 0869f7ef: Merge change 8962 into donut

Merge commit '0869f7ef'

* commit '0869f7ef':
  Log uid and package name when launching intents from search
parents 26e287cc 0869f7ef
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1297,6 +1297,9 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
            if (mGlobalSearchMode) {
                launchGlobalSearchIntent(intent);
            } else {
                // If the intent was created from a suggestion, it will always have an explicit
                // component here.
                Log.i(LOG_TAG, "Starting (as ourselves) " + intent.toURI());
                getContext().startActivity(intent);
                // If the search switches to a different activity,
                // SearchDialogWrapper#performActivityResuming
@@ -1338,7 +1341,6 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        setBrowserApplicationId(intent);

        if (DBG) Log.d(LOG_TAG, "Launching intent " + intent.toURI() + " as " + packageName);
        startActivityInPackage(intent, packageName);
    }

@@ -1379,6 +1381,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
            String resultWho = null;
            int requestCode = -1;
            boolean onlyIfNeeded = false;
            Log.i(LOG_TAG, "Starting (uid " + uid + ", " + packageName + ") " + intent.toURI());
            int result = ActivityManagerNative.getDefault().startActivityInPackage(
                    uid, intent, resolvedType, resultTo, resultWho, requestCode, onlyIfNeeded);
            checkStartActivityResult(result, intent);