Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

Commit c15554d

Browse files
committed
make the outstate nullable again
1 parent ac9e687 commit c15554d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/net/squanchy/search/SearchActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ class SearchActivity : AppCompatActivity(), SearchRecyclerView.OnSearchResultCli
189189
}
190190
}
191191

192-
override fun onSaveInstanceState(outState: Bundle) {
193-
outState.putString(QUERY_KEY, searchField.text?.toString())
192+
override fun onSaveInstanceState(outState: Bundle?) {
193+
outState?.putString(QUERY_KEY, searchField.text?.toString())
194194
super.onSaveInstanceState(outState)
195195
}
196196

0 commit comments

Comments
 (0)