Skip to content

Commit 5cec133

Browse files
shashwatjollyatm1504
authored andcommitted
Fix bug where keyboard does not hide when search is cancelled (#2457)
1 parent ddd9844 commit 5cec133

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/org/fossasia/susi/ai/skills/SkillsActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ class SkillsActivity : AppCompatActivity(), SkillFragmentCallback {
141141
overridePendingTransition(R.anim.trans_right_in, R.anim.trans_right_out)
142142
} else {
143143
val action = supportActionBar
144+
hideSoftKeyboard(this, window.decorView)
144145
action?.setDisplayShowCustomEnabled(false)
145146
action?.setDisplayShowTitleEnabled(true)
146147
searchAction?.icon = resources.getDrawable(R.drawable.ic_open_search)

0 commit comments

Comments
 (0)