Merge "Log contextual card event to CURRENT user"
This commit is contained in:
committed by
Android (Google) Code Review
commit
313bddb80e
@@ -139,7 +139,7 @@ public class ContextualCardFeatureProviderImpl implements ContextualCardFeatureP
|
|||||||
final String action = mContext.getString(R.string.config_settingsintelligence_log_action);
|
final String action = mContext.getString(R.string.config_settingsintelligence_log_action);
|
||||||
if (!TextUtils.isEmpty(action)) {
|
if (!TextUtils.isEmpty(action)) {
|
||||||
intent.setAction(action);
|
intent.setAction(action);
|
||||||
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
|
mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -57,7 +57,7 @@ public class ContextualCardFeatureProviderImplTest {
|
|||||||
final Intent intent = new Intent();
|
final Intent intent = new Intent();
|
||||||
mImpl.sendBroadcast(intent);
|
mImpl.sendBroadcast(intent);
|
||||||
|
|
||||||
verify(mContext, never()).sendBroadcastAsUser(intent, UserHandle.ALL);
|
verify(mContext, never()).sendBroadcastAsUser(intent, UserHandle.CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -66,7 +66,7 @@ public class ContextualCardFeatureProviderImplTest {
|
|||||||
final Intent intent = new Intent();
|
final Intent intent = new Intent();
|
||||||
mImpl.sendBroadcast(intent);
|
mImpl.sendBroadcast(intent);
|
||||||
|
|
||||||
verify(mContext).sendBroadcastAsUser(intent, UserHandle.ALL);
|
verify(mContext).sendBroadcastAsUser(intent, UserHandle.CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user