Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a68ca641 authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Remove checks for Activity Context when creating SearchManager

Since https://android-git.corp.google.com/g/3880
all activities create a SearchManager object, to handle
saving and restoring the search dialog. This broke
ActivityUnitTestCase, since ApplicationContext.getSearchManager()
threw an exception in non-activity contexts.
This change removes the activity context check from
getSearchManager(). Since SearchManager is now just a thin
wrapper for SearchManagerService, there shouldn't be anything
activity-specific in it.

Fixes http://b/issue?id=1926254
parent 3e3324ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment