OSDN Git Service

update intent to be toggle instead of show for hvac button
authorBrad Stenning <stenning@google.com>
Tue, 20 Feb 2018 23:15:23 +0000 (15:15 -0800)
committerBrad Stenning <stenning@google.com>
Tue, 20 Feb 2018 23:15:23 +0000 (15:15 -0800)
Test: Manual (emulator build)
Change-Id: Ia246fcba6778202ae04700d06d1c4a5cef88260c

packages/SystemUI/res/layout/car_left_navigation_bar.xml
packages/SystemUI/res/layout/car_navigation_bar.xml
packages/SystemUI/res/layout/car_right_navigation_bar.xml

index 866b5a5..18301a8 100644 (file)
@@ -51,7 +51,7 @@
             android:id="@+id/hvac"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            systemui:intent="intent:#Intent;action=android.car.intent.action.SHOW_HVAC_CONTROLS;end"
+            systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end"
             systemui:broadcast="true"
             android:src="@drawable/car_ic_hvac"
             android:background="?android:attr/selectableItemBackground"
index 4666c60..9ff16a2 100644 (file)
@@ -49,7 +49,7 @@
             android:id="@+id/hvac"
             android:layout_height="match_parent"
             android:layout_width="wrap_content"
-            systemui:intent="intent:#Intent;action=android.car.intent.action.SHOW_HVAC_CONTROLS;end"
+            systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end"
             systemui:broadcast="true"
             android:src="@drawable/car_ic_hvac"
             android:background="?android:attr/selectableItemBackground"
index 99ab802..99bd23c 100644 (file)
@@ -51,7 +51,7 @@
             android:id="@+id/hvac"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            systemui:intent="intent:#Intent;action=android.car.intent.action.SHOW_HVAC_CONTROLS;end"
+            systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end"
             systemui:broadcast="true"
             android:src="@drawable/car_ic_hvac"
             android:background="?android:attr/selectableItemBackground"