FolderPickerActivity: call super.onCreateOptionsMenu inside overriding method

Fixes a bug where ExtendedListFragment.onCreateOptionsMenu is not called for the child fragment

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-07-07 09:15:53 +02:00
parent 0e0bfbbd12
commit ffd49266ec
No known key found for this signature in database
GPG key ID: 2585783189A62105

View file

@ -260,7 +260,7 @@ open class FolderPickerActivity :
override fun onCreateOptionsMenu(menu: Menu): Boolean {
val inflater = menuInflater
inflater.inflate(R.menu.activity_folder_picker, menu)
return true
return super.onCreateOptionsMenu(menu)
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {