From 981f09df2275167bc3596a114f78617fa2aec353 Mon Sep 17 00:00:00 2001 From: Shashank shetty Date: Tue, 5 Nov 2024 12:04:08 +0530 Subject: [PATCH] #3957 Fixed function name for shortcut handling --- .../java/org/kiwix/kiwixmobile/main/KiwixMainActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/kiwix/kiwixmobile/main/KiwixMainActivity.kt b/app/src/main/java/org/kiwix/kiwixmobile/main/KiwixMainActivity.kt index 07e49ce61a..6a4101469e 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/main/KiwixMainActivity.kt +++ b/app/src/main/java/org/kiwix/kiwixmobile/main/KiwixMainActivity.kt @@ -118,7 +118,7 @@ class KiwixMainActivity : CoreMainActivity() { super.onCreate(savedInstanceState) activityKiwixMainBinding = ActivityKiwixMainBinding.inflate(layoutInflater) setContentView(activityKiwixMainBinding.root) - handleShortcutIntent(intent) + handleGetContentIntent(intent) navController.addOnDestinationChangedListener(finishActionModeOnDestinationChange) activityKiwixMainBinding.drawerNavView.setupWithNavController(navController) @@ -218,7 +218,7 @@ class KiwixMainActivity : CoreMainActivity() { override fun onNewIntent(intent: Intent) { super.onNewIntent(intent) handleNotificationIntent(intent) - handleShortcutIntent(intent) + handleGetContentIntent(intent) handleZimFileIntent(intent) supportFragmentManager.fragments.filterIsInstance().forEach { it.onNewIntent(intent, this) @@ -272,7 +272,7 @@ class KiwixMainActivity : CoreMainActivity() { } } - private fun handleShortcutIntent(intent: Intent) { + private fun handleGetContentIntent(intent: Intent) { if (intent.action == "GET_CONTENT") { activityKiwixMainBinding.bottomNavView.menu.findItem(R.id.downloadsFragment)?.let { NavigationUI.onNavDestinationSelected(it, navController)