Loading packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarFacetButtonController.java +6 −4 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.util.Log; import android.view.Display; import android.view.View; import android.view.ViewGroup; Loading Loading @@ -113,8 +113,10 @@ public class CarFacetButtonController { public void taskChanged(List<ActivityManager.StackInfo> stackInfoList) { ActivityManager.StackInfo validStackInfo = null; for (ActivityManager.StackInfo stackInfo : stackInfoList) { // Find the first stack info with a topActivity if (stackInfo.topActivity != null) { // Find the first stack info with a topActivity in the primary display. // TODO: We assume that CarFacetButton will launch an app only in the primary display. // We need to extend the functionality to handle the mutliple display properly. if (stackInfo.topActivity != null && stackInfo.displayId == Display.DEFAULT_DISPLAY) { validStackInfo = stackInfo; break; } Loading Loading
packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarFacetButtonController.java +6 −4 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.util.Log; import android.view.Display; import android.view.View; import android.view.ViewGroup; Loading Loading @@ -113,8 +113,10 @@ public class CarFacetButtonController { public void taskChanged(List<ActivityManager.StackInfo> stackInfoList) { ActivityManager.StackInfo validStackInfo = null; for (ActivityManager.StackInfo stackInfo : stackInfoList) { // Find the first stack info with a topActivity if (stackInfo.topActivity != null) { // Find the first stack info with a topActivity in the primary display. // TODO: We assume that CarFacetButton will launch an app only in the primary display. // We need to extend the functionality to handle the mutliple display properly. if (stackInfo.topActivity != null && stackInfo.displayId == Display.DEFAULT_DISPLAY) { validStackInfo = stackInfo; break; } Loading