From 3ca6a15058d9ce6f10e46b3f97a4ffa8f4e7d72d Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Wed, 13 Dec 2023 13:12:32 +0530 Subject: [PATCH] Fixes the issue where the "Help" submenu in the sidebar is misleading in custom apps. * We have hidden the help screen from our sidebar. --- .../kiwix/kiwixmobile/custom/main/CustomMainActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom/src/main/java/org/kiwix/kiwixmobile/custom/main/CustomMainActivity.kt b/custom/src/main/java/org/kiwix/kiwixmobile/custom/main/CustomMainActivity.kt index 308506cb9..d424fc627 100644 --- a/custom/src/main/java/org/kiwix/kiwixmobile/custom/main/CustomMainActivity.kt +++ b/custom/src/main/java/org/kiwix/kiwixmobile/custom/main/CustomMainActivity.kt @@ -105,6 +105,14 @@ class CustomMainActivity : CoreMainActivity() { * For more info see https://github.com/kiwix/kiwix-android/pull/3516 */ menu.findItem(R.id.menu_host_books)?.isVisible = false + /** + * Hide the `HelpFragment` from custom apps. + * We have not removed the relevant code for `HelpFragment` from custom apps. + * If, in the future, we need to display this for all/some custom apps, + * we can either remove the line below or configure it according to the requirements. + * For more information, see https://github.com/kiwix/kiwix-android/issues/3584 + */ + menu.findItem(R.id.menu_help)?.isVisible = false setNavigationItemSelectedListener { item -> closeNavigationDrawer() onNavigationItemSelected(item)