Merge "Moving saving state transtion listener logic to individual views" into ub-launcher3-master

This commit is contained in:
Sunny Goyal
2016-11-18 01:17:51 +00:00
committed by Android (Google) Code Review
8 changed files with 93 additions and 295 deletions

View File

@@ -43,7 +43,6 @@ import com.android.launcher3.ExtendedEditText;
import com.android.launcher3.Insettable;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherTransitionable;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.config.FeatureFlags;
@@ -63,8 +62,7 @@ import java.util.List;
* The all apps view container.
*/
public class AllAppsContainerView extends BaseContainerView implements DragSource,
LauncherTransitionable, View.OnLongClickListener, AllAppsSearchBarController.Callbacks,
Insettable {
View.OnLongClickListener, AllAppsSearchBarController.Callbacks, Insettable {
private final Launcher mLauncher;
private final AlphabeticalAppsList mApps;
@@ -449,29 +447,6 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
}
}
@Override
public void onLauncherTransitionPrepare(Launcher l, boolean animated,
boolean multiplePagesVisible) {
// Do nothing
}
@Override
public void onLauncherTransitionStart(Launcher l, boolean animated, boolean toWorkspace) {
// Do nothing
}
@Override
public void onLauncherTransitionStep(Launcher l, float t) {
// Do nothing
}
@Override
public void onLauncherTransitionEnd(Launcher l, boolean animated, boolean toWorkspace) {
if (toWorkspace) {
reset();
}
}
@Override
public void onSearchResult(String query, ArrayList<ComponentKey> apps) {
if (apps != null) {