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

Commit 318ecf96 authored by Achim Thesmann's avatar Achim Thesmann Committed by Android (Google) Code Review
Browse files

Merge "Remove redundant logs" into main

parents 67466317 814404d1
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -714,9 +714,6 @@ public class BackgroundActivityStartController {

        if (!state.hasRealCaller()) {
            if (resultForCaller.allows()) {
                if (DEBUG_ACTIVITY_STARTS) {
                    Slog.d(TAG, "Background activity start allowed. " + state);
                }
                return allowBasedOnCaller(state);
            }
            return abortLaunch(state);
@@ -742,15 +739,9 @@ public class BackgroundActivityStartController {

        // Handle cases with explicit opt-in
        if (resultForCaller.allows() && state.callerExplicitOptInOrAutoOptIn()) {
            if (DEBUG_ACTIVITY_STARTS) {
                Slog.d(TAG, "Activity start explicitly allowed by caller. " + state);
            }
            return allowBasedOnCaller(state);
        }
        if (resultForRealCaller.allows() && state.realCallerExplicitOptInOrAutoOptIn()) {
            if (DEBUG_ACTIVITY_STARTS) {
                Slog.d(TAG, "Activity start explicitly allowed by real caller. " + state);
            }
            return allowBasedOnRealCaller(state);
        }
        // Handle PendingIntent cases with default behavior next