Add foreground activity check to CarAppFocusService

If foreground app is owning app focus, background app will not get it.

Bug: 28836743
Change-Id: Icf5f1e7b6500f74ea6e6bf2d4097bcec78ceaa1a
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index 05e8f59..e09d938 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -98,7 +98,7 @@
         mCarProjectionService = new CarProjectionService(serviceContext, mCarInputService);
         mGarageModeService = new GarageModeService(mContext, mCarPowerManagementService);
         mCarInfoService = new CarInfoService(serviceContext);
-        mAppFocusService = new AppFocusService(serviceContext);
+        mAppFocusService = new AppFocusService(serviceContext, mSystemActivityMonitoringService);
         mCarAudioService = new CarAudioService(serviceContext, mCarInputService);
         mCarHvacService = new CarHvacService(serviceContext);
         mCarRadioService = new CarRadioService(serviceContext);