Merge pull request #1776 from Hixie/stocks-back

Fix Stocks search mode back button.
This commit is contained in:
Ian Hickson
2015-10-26 12:02:33 -07:00

View File

@@ -39,13 +39,9 @@ class StockHomeState extends State<StockHome> {
void _handleSearchEnd() {
assert(() {
final StateRoute currentRoute = config.navigator.currentRoute;
assert(currentRoute.owner == this);
return currentRoute.owner == this;
});
config.navigator.pop();
setState(() {
_isSearching = false;
_searchQuery = null;
});
}
void _handleSearchQueryChanged(String query) {