Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e6fb6c0 authored by Jon Miranda's avatar Jon Miranda
Browse files

Fallback to default launch options for users with old version of platform.

Bug: 70220260
Change-Id: I12aa1ecbc5823770b2b43384f3e3b0645394d714
parent 3b484726
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import com.android.launcher3.util.TouchController;
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 class UiFactory {
    }

    public static Bundle getActivityLaunchOptions(Launcher launcher, View 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);
        }
    }
}