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

Commit 313bddb8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log contextual card event to CURRENT user"

parents b07c5371 a4fa5bc2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ public class ContextualCardFeatureProviderImpl implements ContextualCardFeatureP
        final String action = mContext.getString(R.string.config_settingsintelligence_log_action);
        if (!TextUtils.isEmpty(action)) {
            intent.setAction(action);
            mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
            mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT);
        }
    }

+2 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public class ContextualCardFeatureProviderImplTest {
        final Intent intent = new Intent();
        mImpl.sendBroadcast(intent);

        verify(mContext, never()).sendBroadcastAsUser(intent, UserHandle.ALL);
        verify(mContext, never()).sendBroadcastAsUser(intent, UserHandle.CURRENT);
    }

    @Test
@@ -66,7 +66,7 @@ public class ContextualCardFeatureProviderImplTest {
        final Intent intent = new Intent();
        mImpl.sendBroadcast(intent);

        verify(mContext).sendBroadcastAsUser(intent, UserHandle.ALL);
        verify(mContext).sendBroadcastAsUser(intent, UserHandle.CURRENT);
    }

    @Test