Skip to content

Commit

Permalink
Statubar date fix
Browse files Browse the repository at this point in the history
Change-Id: I69058d9a4965526e43d3dd367370626e500db894
  • Loading branch information
thekraven2 committed Jan 26, 2012
1 parent 7479afb commit 336237e
Showing 1 changed file with 17 additions and 11 deletions.
Expand Up @@ -562,7 +562,7 @@ protected void addStatusBarView() {

final View view = mStatusBarContainer;

int mPixelFormat = PixelFormat.RGBX_8888;
int mPixelFormat = PixelFormat.TRANSLUCENT;
if (Settings.System.getInt(mContext.getContentResolver(), Settings.System.TRANSPARENT_STATUS_BAR, 0) != 0) {
// transparent statusbar enabled?
mPixelFormat = PixelFormat.TRANSLUCENT;
Expand Down Expand Up @@ -950,9 +950,10 @@ private void makeExpandedVisible() {
mTrackingView.setVisibility(View.VISIBLE);
mExpandedView.setVisibility(View.VISIBLE);

// if (!mTicking) {
// setDateViewVisibility(true, com.android.internal.R.anim.fade_in);
// }
if (!mTicking) {
setDateViewVisibility(true, com.android.internal.R.anim.fade_in);
setNotificationIconVisibility(false, com.android.internal.R.anim.fade_out);
}
}

public void animateExpand() {
Expand Down Expand Up @@ -1458,9 +1459,9 @@ void tickerDone() {
mIcons.startAnimation(loadAnim(com.android.internal.R.anim.push_down_in, null));
mCenterClock.startAnimation(loadAnim(com.android.internal.R.anim.push_down_in, null));
mTickerView.startAnimation(loadAnim(com.android.internal.R.anim.push_down_out, null));
// if (mExpandedVisible) {
// setDateViewVisibility(true, com.android.internal.R.anim.push_down_in);
// }
if (mExpandedVisible) {
setDateViewVisibility(true, com.android.internal.R.anim.push_down_in);
}
}

void tickerHalting() {
Expand All @@ -1472,9 +1473,9 @@ void tickerHalting() {
mIcons.startAnimation(loadAnim(com.android.internal.R.anim.fade_in, null));
mCenterClock.startAnimation(loadAnim(com.android.internal.R.anim.fade_in, null));
mTickerView.startAnimation(loadAnim(com.android.internal.R.anim.fade_out, null));
// if (mExpandedVisible) {
// setDateViewVisibility(true, com.android.internal.R.anim.fade_in);
// }
if (mExpandedVisible) {
setDateViewVisibility(true, com.android.internal.R.anim.fade_in);
}
}
}

Expand Down Expand Up @@ -1626,6 +1627,11 @@ void setDateViewVisibility(boolean visible, int anim) {
mDateView.setUpdates(visible);
mDateView.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
mDateView.startAnimation(loadAnim(anim, null));
if (visible) {
setNotificationIconVisibility(false, com.android.internal.R.anim.fade_out);
} else {
setNotificationIconVisibility(true, com.android.internal.R.anim.fade_in);
}
}

void setNotificationIconVisibility(boolean visible, int anim) {
Expand All @@ -1634,7 +1640,7 @@ void setNotificationIconVisibility(boolean visible, int anim) {
if (old != v) {
mNotificationIcons.setVisibility(v);
mNotificationIcons.startAnimation(loadAnim(anim, null));
}
}
}

void updateExpandedViewPos(int expandedPosition) {
Expand Down

0 comments on commit 336237e

Please sign in to comment.