Merge "Add actions to binding Intent" into tm-qpr-dev

This commit is contained in:
Fabian Kozynski
2023-03-01 14:12:54 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ class ControlsProviderLifecycleManager(
private val BIND_FLAGS_PANEL = Context.BIND_AUTO_CREATE or Context.BIND_NOT_PERCEPTIBLE
}
private val intent = Intent().apply {
private val intent = Intent(ControlsProviderService.SERVICE_CONTROLS).apply {
component = componentName
putExtra(CALLBACK_BUNDLE, Bundle().apply {
putBinder(CALLBACK_TOKEN, token)

View File

@@ -76,7 +76,8 @@ public class TileServiceManager {
this(tileServices, handler, userTracker, new TileLifecycleManager(handler,
tileServices.getContext(), tileServices,
new PackageManagerAdapter(tileServices.getContext()), broadcastDispatcher,
new Intent().setComponent(component), userTracker.getUserHandle()));
new Intent(TileService.ACTION_QS_TILE).setComponent(component),
userTracker.getUserHandle()));
}
@VisibleForTesting