Routing new API calls through a compat layer
Change-Id: I0bdbe99d6bc2291b370d143c6b5cb4408fe144eb
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java
index 8597f98..46e883a 100644
--- a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java
+++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/RecentsUiFactory.java
@@ -48,6 +48,7 @@
import com.android.quickstep.SysUINavigationMode;
import com.android.quickstep.SysUINavigationMode.Mode;
import com.android.quickstep.TouchInteractionService;
+import com.android.quickstep.util.SharedApiCompat;
import com.android.quickstep.views.RecentsView;
import com.android.systemui.shared.recents.ISystemUiProxy;
@@ -67,7 +68,7 @@
ISystemUiProxy sysUiProxy = RecentsModel.INSTANCE.get(context).getSystemUiProxy();
if (sysUiProxy == null) return;
try {
- sysUiProxy.setShelfHeight(visible != 0, height);
+ SharedApiCompat.setShelfHeight(sysUiProxy, visible != 0, height);
} catch (RemoteException e) {
Log.e(TAG, "Error setShelfHeight", e);
}