Add getUserEventLogger to LauncherCallbacks

b/26494415

Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02
This commit is contained in:
Hyunyoung Song
2016-03-08 16:55:47 -08:00
parent 726eb822d3
commit 8fd5e938d3
9 changed files with 267 additions and 219 deletions

View File

@@ -148,6 +148,7 @@ public class LauncherStateTransitionAnimation {
}
@Override
void onTransitionComplete() {
mLauncher.getLogger().resetElapsedContainerMillis();
if (startSearchAfterTransition) {
toView.startAppsSearch();
}
@@ -167,7 +168,12 @@ public class LauncherStateTransitionAnimation {
final View buttonView = mLauncher.getWidgetsButton();
mCurrentAnimation = startAnimationToOverlay(fromWorkspaceState,
Workspace.State.OVERVIEW_HIDDEN, buttonView, toView, animated,
new PrivateTransitionCallbacks(FINAL_REVEAL_ALPHA_FOR_WIDGETS));
new PrivateTransitionCallbacks(FINAL_REVEAL_ALPHA_FOR_WIDGETS){
@Override
void onTransitionComplete() {
mLauncher.getLogger().resetElapsedContainerMillis();
}
});
}
/**
@@ -462,6 +468,10 @@ public class LauncherStateTransitionAnimation {
}
};
}
@Override
void onTransitionComplete() {
mLauncher.getLogger().resetElapsedContainerMillis();
}
};
// Only animate the search bar if animating to spring loaded mode from all apps
mCurrentAnimation = startAnimationToWorkspaceFromOverlay(fromWorkspaceState, toWorkspaceState,
@@ -488,6 +498,10 @@ public class LauncherStateTransitionAnimation {
}
};
}
@Override
void onTransitionComplete() {
mLauncher.getLogger().resetElapsedContainerMillis();
}
};
mCurrentAnimation = startAnimationToWorkspaceFromOverlay(
fromWorkspaceState, toWorkspaceState,