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:
Bjorn Bringert
2009-11-21 22:08:04 +00:00
parent 600f188702
commit 98047dc39f
+1 -7
View File
@@ -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();
}
});
}