Merge change 4908 into donut
* changes: Remove checks for Activity Context when creating SearchManager
This commit is contained in:
@@ -1037,11 +1037,6 @@ class ApplicationContext extends Context {
|
||||
}
|
||||
|
||||
private SearchManager getSearchManager() {
|
||||
// This is only useable in Activity Contexts
|
||||
if (getActivityToken() == null) {
|
||||
throw new AndroidRuntimeException(
|
||||
"Acquiring SearchManager objects only valid in Activity Contexts.");
|
||||
}
|
||||
synchronized (mSync) {
|
||||
if (mSearchManager == null) {
|
||||
mSearchManager = new SearchManager(getOuterContext(), mMainThread.getHandler());
|
||||
|
||||
Reference in New Issue
Block a user