isOpaque is not appropriate for AllAppsTabbed; replace with isAnimating().

This commit is contained in:
Patrick Dubroy
2010-07-26 15:23:26 -07:00
parent 13f011e352
commit ff5f040de1
5 changed files with 12 additions and 13 deletions

View File

@@ -68,8 +68,6 @@ public class AllApps2D
private AppsAdapter mAppsAdapter;
private boolean mIsViewOpaque;
// ------------------------------------------------------------
public static class HomeButton extends ImageButton {
@@ -128,8 +126,6 @@ public class AllApps2D
@Override
protected void onFinishInflate() {
mIsViewOpaque = super.isOpaque();
try {
mGrid = (GridView)findViewWithTag("all_apps_2d_grid");
if (mGrid == null) throw new Resources.NotFoundException();
@@ -252,9 +248,8 @@ public class AllApps2D
return mZoom > 0.001f;
}
@Override
public boolean isOpaque() {
return mIsViewOpaque && mZoom > 0.999f;
public boolean isAnimating() {
return (getAnimation() != null);
}
public void setApps(ArrayList<ApplicationInfo> list) {