diff options
author | Joe Onorato <joeo@android.com> | 2010-06-09 15:07:16 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-06-09 15:07:16 -0700 |
commit | 8a5f10b30dae663eb01372490df3497e8a2ad56a (patch) | |
tree | f290abed00828b9b8c7f399805a2f2629e6fd262 /policy | |
parent | 1d46191d88ee9262ea05b868d2db5b44ad85fa43 (diff) | |
parent | f7b79151923ccde24a3c5cb546d9f595f0891f59 (diff) | |
download | frameworks_base-8a5f10b30dae663eb01372490df3497e8a2ad56a.zip frameworks_base-8a5f10b30dae663eb01372490df3497e8a2ad56a.tar.gz frameworks_base-8a5f10b30dae663eb01372490df3497e8a2ad56a.tar.bz2 |
resolved conflicts for merge of f7b79151 to master
Change-Id: Ia4538f73d8bade9e6565835d484dcb650830feca
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/com/android/internal/policy/impl/PhoneWindowManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/policy/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/com/android/internal/policy/impl/PhoneWindowManager.java index 73a57ee..d152bc4 100755 --- a/policy/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/com/android/internal/policy/impl/PhoneWindowManager.java @@ -957,12 +957,20 @@ public class PhoneWindowManager implements WindowManagerPolicy { public int prepareAddWindowLw(WindowState win, WindowManager.LayoutParams attrs) { switch (attrs.type) { case TYPE_STATUS_BAR: + mContext.enforceCallingOrSelfPermission( + android.Manifest.permission.STATUS_BAR_SERVICE, + "PhoneWindowManager"); + // TODO: Need to handle the race condition of the status bar proc + // dying and coming back before the removeWindowLw cleanup has happened. if (mStatusBar != null) { return WindowManagerImpl.ADD_MULTIPLE_SINGLETON; } mStatusBar = win; break; case TYPE_STATUS_BAR_PANEL: + mContext.enforceCallingOrSelfPermission( + android.Manifest.permission.STATUS_BAR_SERVICE, + "PhoneWindowManager"); mStatusBarPanels.add(win); break; case TYPE_KEYGUARD: |