OSDN Git Service

Update nav bar controller to allow for a home intent to be fired without
authorBrad Stenning <stenning@google.com>
Wed, 29 Nov 2017 22:37:51 +0000 (14:37 -0800)
committerBrad Stenning <stenning@google.com>
Wed, 29 Nov 2017 22:53:20 +0000 (22:53 +0000)
having a package name.

Test: After set up select the Lenspicker as the home app then click the
  home button (note: needs other commits with topic "AAE Home"

Change-Id: Ief9871bcc81902036d7af9630d6f1d27e8c83366
(cherry picked from commit Icddda312c10dfd603fb098fec13dae55d807444e)
# Conflicts:
# packages/SystemUI/src/com/android/systemui/statusbar/car/CarNavigationBarController.java

packages/SystemUI/src/com/android/systemui/statusbar/car/CarNavigationBarController.java

index f5c77f2..64c52ed 100644 (file)
@@ -369,7 +369,7 @@ class CarNavigationBarController {
     private void onFacetClicked(Intent intent, int index) {
         String packageName = intent.getPackage();
 
-        if (packageName == null) {
+        if (packageName == null && !intent.getCategories().contains(Intent.CATEGORY_HOME)) {
             return;
         }