am 1b89ad48: Merge "DO NOT MERGE Fix bug where folder was almost transparent" into jb-mr2-dev

* commit '1b89ad48536bc247d9611d374f733611cb8eaf13':
  DO NOT MERGE Fix bug where folder was almost transparent
This commit is contained in:
Michael Jurka
2013-05-08 11:17:21 -07:00
committed by Android Git Automerger
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -441,6 +441,9 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
cling.bringToFront();
}
setFocusOnFirstChild();
setAlpha(1);
setScaleX(1);
setScaleY(1);
}
});
oa.setDuration(mExpandDuration);
+8
View File
@@ -2242,6 +2242,14 @@ public final class Launcher extends Activity
ObjectAnimator oa = LauncherAnimUtils.ofPropertyValuesHolder(mFolderIconImageView, alpha,
scaleX, scaleY);
oa.setDuration(getResources().getInteger(R.integer.config_folderAnimDuration));
oa.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator animation) {
if (mFolderIconImageView != null) {
mFolderIconImageView.setAlpha(0);
mFolderIconImageView.setScalex(1.5f);
mFolderIconImageView.setScalex(1.5f);
}
}
oa.start();
}