Commit a66e55a8 authored by Ian Hickson's avatar Ian Hickson

Fix Stocks search mode back button.

Back button wasn't reliably working in checked mode.
parent a6c473ea
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment