Clear search widget animation in Launcher.onResume()
Before, Launcher relied on a callback to a SearchManager.OnCancelListener to clear the search widget animation. However, that doesn't get called if some other app opens the search dialog before the Launcher is reopened. This change clears the animation in onResume(). Should fix http://b/issue?id=2246760
This commit is contained in:
@@ -418,13 +418,7 @@ public final class Launcher extends Activity
|
||||
// itself again.
|
||||
mWorkspace.post(new Runnable() {
|
||||
public void run() {
|
||||
ISearchManager searchManagerService = ISearchManager.Stub.asInterface(
|
||||
ServiceManager.getService(Context.SEARCH_SERVICE));
|
||||
try {
|
||||
searchManagerService.stopSearch();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "error stopping search", e);
|
||||
}
|
||||
stopSearch();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user