am 6e09858c: Don\'t enforce that search dialog is a singleton.
Merge commit '6e09858c0bd13a321ed716b670b361e62b1536e4' * commit '6e09858c0bd13a321ed716b670b361e62b1536e4': Don't enforce that search dialog is a singleton.
This commit is contained in:
committed by
The Android Open Source Project
commit
8160c8edce
@@ -160,7 +160,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
|
||||
boolean mSafeMode;
|
||||
WindowState mStatusBar = null;
|
||||
WindowState mSearchBar = null;
|
||||
WindowState mKeyguard = null;
|
||||
KeyguardViewMediator mKeyguardMediator;
|
||||
GlobalActions mGlobalActions;
|
||||
@@ -702,7 +701,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
* Currently enforces that three window types are singletons:
|
||||
* <ul>
|
||||
* <li>STATUS_BAR_TYPE</li>
|
||||
* <li>SEARCH_BAR_TYPE</li>
|
||||
* <li>KEYGUARD_TYPE</li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -719,12 +717,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
}
|
||||
mStatusBar = win;
|
||||
break;
|
||||
case TYPE_SEARCH_BAR:
|
||||
if (mSearchBar != null) {
|
||||
return WindowManagerImpl.ADD_MULTIPLE_SINGLETON;
|
||||
}
|
||||
mSearchBar = win;
|
||||
break;
|
||||
case TYPE_KEYGUARD:
|
||||
if (mKeyguard != null) {
|
||||
return WindowManagerImpl.ADD_MULTIPLE_SINGLETON;
|
||||
@@ -740,9 +732,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
if (mStatusBar == win) {
|
||||
mStatusBar = null;
|
||||
}
|
||||
else if (mSearchBar == win) {
|
||||
mSearchBar = null;
|
||||
}
|
||||
else if (mKeyguard == win) {
|
||||
mKeyguard = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user