From ffd49266ec4ea1d2f0f24e39f71d8168d7342820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey?= Date: Thu, 7 Jul 2022 09:15:53 +0200 Subject: [PATCH] FolderPickerActivity: call super.onCreateOptionsMenu inside overriding method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a bug where ExtendedListFragment.onCreateOptionsMenu is not called for the child fragment Signed-off-by: Álvaro Brey --- .../com/owncloud/android/ui/activity/FolderPickerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.kt b/app/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.kt index 36510f70d2..5a1e1ca051 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.kt +++ b/app/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.kt @@ -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 {