resolved conflicts for merge of 0ad33066 to ub-launcher3-master
Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70
This commit is contained in:
@@ -178,7 +178,24 @@ public class Workspace extends PagedView
|
||||
// State variable that indicates whether the pages are small (ie when you're
|
||||
// in all apps or customize mode)
|
||||
|
||||
enum State { NORMAL, NORMAL_HIDDEN, SPRING_LOADED, OVERVIEW, OVERVIEW_HIDDEN};
|
||||
enum State {
|
||||
NORMAL (SearchDropTargetBar.State.SEARCH_BAR),
|
||||
NORMAL_HIDDEN (SearchDropTargetBar.State.INVISIBLE),
|
||||
SPRING_LOADED (SearchDropTargetBar.State.DROP_TARGET),
|
||||
OVERVIEW (SearchDropTargetBar.State.INVISIBLE),
|
||||
OVERVIEW_HIDDEN (SearchDropTargetBar.State.INVISIBLE);
|
||||
|
||||
private final SearchDropTargetBar.State mBarState;
|
||||
|
||||
State(SearchDropTargetBar.State searchBarState) {
|
||||
mBarState = searchBarState;
|
||||
}
|
||||
|
||||
public SearchDropTargetBar.State getSearchDropTargetBarState() {
|
||||
return mBarState;
|
||||
}
|
||||
};
|
||||
|
||||
private State mState = State.NORMAL;
|
||||
private boolean mIsSwitchingState = false;
|
||||
|
||||
@@ -1558,7 +1575,7 @@ public class Workspace extends PagedView
|
||||
// Reset our click listener
|
||||
setOnClickListener(mLauncher);
|
||||
}
|
||||
mLauncher.getSearchBar().enableAccessibleDrag(enable);
|
||||
mLauncher.getSearchDropTargetBar().enableAccessibleDrag(enable);
|
||||
mLauncher.getHotseat().getLayout()
|
||||
.enableAccessibleDrag(enable, CellLayout.WORKSPACE_ACCESSIBILITY_DRAG);
|
||||
}
|
||||
@@ -1976,10 +1993,10 @@ public class Workspace extends PagedView
|
||||
* to that new state.
|
||||
*/
|
||||
public Animator setStateWithAnimation(State toState, boolean animated,
|
||||
boolean hasOverlaySearchBar, HashMap<View, Integer> layerViews) {
|
||||
HashMap<View, Integer> layerViews) {
|
||||
// Create the animation to the new state
|
||||
Animator workspaceAnim = mStateTransitionAnimation.getAnimationToState(mState,
|
||||
toState, animated, hasOverlaySearchBar, layerViews);
|
||||
toState, animated, layerViews);
|
||||
|
||||
// Update the current state
|
||||
mState = toState;
|
||||
|
||||
Reference in New Issue
Block a user