Use an implicit intent to launch the Media Center

Benefit: the launched activity isn't hard coded to MediaActivity.

Test: manual
Change-Id: I6a6a641fdb4c27a6818929cfc4138b71749999fc
(cherry picked from commit d30efbc1dbb121b8c3862e5e125cf9c5eb2a31fd)
This commit is contained in:
Arnaud Berry
2018-12-21 10:50:04 -08:00
parent d41cd56850
commit 488762974f

View File

@@ -66,7 +66,7 @@
android:id="@+id/music_nav"
style="@style/NavigationBarButton"
systemui:icon="@drawable/car_ic_music"
systemui:intent="intent:#Intent;component=com.android.car.media/.MediaActivity;launchFlags=0x14000000;end"
systemui:intent="intent:#Intent;action=android.car.intent.action.MEDIA_TEMPLATE;launchFlags=0x10000000;end"
systemui:packages="com.android.car.media"
systemui:selectedIcon="@drawable/car_ic_music_selected"
systemui:useMoreIcon="false"