diff options
author | Tony Wu <Tony_Wu@acer.com.tw> | 2010-10-07 17:53:43 +0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2010-11-19 11:15:22 -0500 |
commit | e15ccee07e31e8ad85daa316f15e9c537b4fb26b (patch) | |
tree | f5118e211eb75e4612ce12d46185ffa0ed152726 /services/java/com/android/server | |
parent | 420f41a0530fca4225c24c2c3189d95ce3815389 (diff) | |
download | frameworks_base-e15ccee07e31e8ad85daa316f15e9c537b4fb26b.zip frameworks_base-e15ccee07e31e8ad85daa316f15e9c537b4fb26b.tar.gz frameworks_base-e15ccee07e31e8ad85daa316f15e9c537b4fb26b.tar.bz2 |
Fix sometimes mExpandedView will appear while screen transforming.
While watching YouTube and receiving a call, after hang up the call,
mExpandedView may flash when screen transform from Phone to YouTube.
Change-Id: Ib25a0cd1086c278b91a2b34e21744a3c432a8f35
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r-- | services/java/com/android/server/status/StatusBarService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/status/StatusBarService.java b/services/java/com/android/server/status/StatusBarService.java index 6203b85..88de4c9 100644 --- a/services/java/com/android/server/status/StatusBarService.java +++ b/services/java/com/android/server/status/StatusBarService.java @@ -362,6 +362,7 @@ public class StatusBarService extends IStatusBar.Stub mPlmnLabel = (TextView)expanded.findViewById(R.id.plmnLabel); mScrollView = (ScrollView)expanded.findViewById(R.id.scroll); mNotificationLinearLayout = expanded.findViewById(R.id.notificationLinearLayout); + if (custExpBar) { mExpandedView.findViewById(R.id.exp_view_lin_layout). setBackgroundDrawable(expBarHeadDrawable); @@ -369,6 +370,8 @@ public class StatusBarService extends IStatusBar.Stub mOngoingTitle.setBackgroundDrawable(expBarNotifTitleDrawable); mLatestTitle.setBackgroundDrawable(expBarNotifTitleDrawable); } + + mExpandedView.setVisibility(View.GONE); mOngoingTitle.setVisibility(View.GONE); mLatestTitle.setVisibility(View.GONE); @@ -1134,6 +1137,7 @@ public class StatusBarService extends IStatusBar.Stub mExpandedDialog.getWindow().setAttributes(mExpandedParams); mExpandedView.requestFocus(View.FOCUS_FORWARD); mTrackingView.setVisibility(View.VISIBLE); + mExpandedView.setVisibility(View.VISIBLE); if (!mTicking) { setDateViewVisibility(true, com.android.internal.R.anim.fade_in); @@ -1218,6 +1222,7 @@ public class StatusBarService extends IStatusBar.Stub mExpandedParams.flags &= ~WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; mExpandedDialog.getWindow().setAttributes(mExpandedParams); mTrackingView.setVisibility(View.GONE); + mExpandedView.setVisibility(View.GONE); if ((mDisabled & StatusBarManager.DISABLE_NOTIFICATION_ICONS) == 0) { setNotificationIconVisibility(true, com.android.internal.R.anim.fade_in); |