Skip to content

Commit

Permalink
#3957 Fixed function name for shortcut handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-0-0 authored Nov 5, 2024
1 parent 0d5d8a7 commit 981f09d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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<FragmentActivityExtensions>().forEach {
it.onNewIntent(intent, this)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 981f09d

Please sign in to comment.