Skip to content

Commit

Permalink
Fixes:
Browse files Browse the repository at this point in the history
 - Hide search bar if live settings are toggled in overview mode
 - Restore workspace outlines in overview mode after live settings changes

Change-Id: Iee9894f674c78ba3c82486de97e34d610c04a2a5
  • Loading branch information
Raj Yengisetty committed Jul 8, 2014
1 parent 7a812e2 commit 8efcdcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/com/android/launcher3/OverviewSettingsPanel.java
Expand Up @@ -221,7 +221,7 @@ public void onPanelCollapsed(View panel) {

if (mLauncher.updateGridIfNeeded()) {
mLauncher.getWorkspace().showOutlines();
mLauncher.mSearchDropTargetBar.showSearchBar(false);
mLauncher.mSearchDropTargetBar.hideSearchBar(false);
}
}

Expand Down
11 changes: 6 additions & 5 deletions src/com/android/launcher3/Workspace.java
Expand Up @@ -55,6 +55,7 @@
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
import android.view.accessibility.AccessibilityManager;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Animation;
Expand Down Expand Up @@ -2506,11 +2507,12 @@ public void onAnimationUpdate(float a, float b) {
overviewPanel.setScaleY(2.0f);
mOverviewPanelSlideScale = 1.0f;
}
final LauncherViewPropertyAnimator overviewPanelScale = new LauncherViewPropertyAnimator(overviewPanel);

final ViewPropertyAnimator overviewPanelScale = overviewPanel.animate();
overviewPanelScale.scaleY(mOverviewPanelSlideScale)
.alpha(finalOverviewPanelAlpha)
.setInterpolator(new AccelerateDecelerateInterpolator());
overviewPanelScale.addListener(new AnimatorListener() {
overviewPanelScale.setListener(new AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
if (workspaceToOverview) {
Expand All @@ -2526,19 +2528,18 @@ public void onAnimationEnd(Animator animation) {
overviewPanel.setAlpha(finalOverviewPanelAlpha);
AlphaUpdateListener.updateVisibility(overviewPanel);
}
overviewPanelScale.removeAllListeners();
overviewPanelScale.setListener(null);
}

@Override
public void onAnimationCancel(Animator animation) {
overviewPanel.setAlpha(finalOverviewPanelAlpha);
AlphaUpdateListener.updateVisibility(overviewPanel);
overviewPanelScale.removeAllListeners();
overviewPanelScale.setListener(null);
}
@Override
public void onAnimationRepeat(Animator animation) {}
});
anim.play(overviewPanelScale);

if (mShowSearchBar) anim.play(searchBarAlpha);
anim.play(pageIndicatorAlpha);
Expand Down

0 comments on commit 8efcdcc

Please sign in to comment.