Fallback to default launch options for users with old version of platform.
Bug: 70220260
Change-Id: I12aa1ecbc5823770b2b43384f3e3b0645394d714
diff --git a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java
index 67a7d6a..a55c6e4 100644
--- a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java
+++ b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java
@@ -35,6 +35,7 @@
import com.android.launcher3.widget.WidgetsFullSheet;
import com.android.quickstep.RecentsView;
import com.android.systemui.shared.recents.view.RecentsTransition;
+import com.android.systemui.shared.system.RemoteAnimationAdapterCompat;
public class UiFactory {
@@ -107,6 +108,12 @@
}
public static Bundle getActivityLaunchOptions(Launcher launcher, View v) {
- return new LauncherAppTransitionManager(launcher).getActivityLauncherOptions(v);
+ try {
+ return new LauncherAppTransitionManager(launcher).getActivityLauncherOptions(v);
+ } catch (NoClassDefFoundError e) {
+ // Gracefully fall back to default launch options if the user's platform doesn't have
+ // the latest changes.
+ return launcher.getDefaultActivityLaunchOptions(v);
+ }
}
}