mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adding support for listening for app launch animation completion
Bug: 181165935 Bug: 179065491 Test: Verified on device Change-Id: Ifa6a91560cb31b4dfb72a0f582607e873d8a002d
This commit is contained in:
@@ -180,7 +180,7 @@ public class ItemClickHandler {
|
||||
LauncherApps launcherApps = launcher.getSystemService(LauncherApps.class);
|
||||
try {
|
||||
launcherApps.startPackageInstallerSessionDetailsActivity(sessionInfo, null,
|
||||
launcher.getActivityLaunchOptionsAsBundle(v));
|
||||
launcher.getActivityLaunchOptions(v).toBundle());
|
||||
return;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "Unable to launch market intent for package=" + packageName, e);
|
||||
@@ -304,7 +304,7 @@ public class ItemClickHandler {
|
||||
intent.setPackage(null);
|
||||
}
|
||||
}
|
||||
if (v != null && launcher.getAppTransitionManager().supportsAdaptiveIconAnimation(v)) {
|
||||
if (v != null && launcher.supportsAdaptiveIconAnimation(v)) {
|
||||
// Preload the icon to reduce latency b/w swapping the floating view with the original.
|
||||
FloatingIconView.fetchIcon(launcher, v, item, true /* isOpening */);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user