Fix recents on crespo

This commit is contained in:
Michael Jurka
2012-02-14 23:24:17 -08:00
parent a17a7953f9
commit 693ce6447d
2 changed files with 4 additions and 1 deletions

View File

@@ -134,7 +134,9 @@ import android.view.View;
void jumpTo(boolean appearing) {
mContentView.setTranslationY(appearing ? 0 : mPanelHeight);
mScrimView.getBackground().setAlpha(appearing ? 255 : 0);
if (mScrimView.getBackground() != null) {
mScrimView.getBackground().setAlpha(appearing ? 255 : 0);
}
}
public void setPanelHeight(int h) {

View File

@@ -239,6 +239,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
public void show(boolean show, boolean animate) {
if (show) {
refreshRecentTasksList(null, true);
mWaitingToShow = true;
mWaitingToShowAnimated = animate;
showIfReady();