Skip to content

Commit

Permalink
Merge pull request #4214 from kiwix/Fixes#4213
Browse files Browse the repository at this point in the history
Fixed: `Input dispatching timed out` error while creating the application shortcuts.
  • Loading branch information
kelson42 authored Feb 7, 2025
2 parents 549bb5a + 7474d7e commit a2341ba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import androidx.drawerlayout.widget.DrawerLayout.LOCK_MODE_LOCKED_CLOSED
import androidx.drawerlayout.widget.DrawerLayout.LOCK_MODE_UNLOCKED
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentContainerView
import androidx.lifecycle.lifecycleScope
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.navigation.NavDirections
Expand Down Expand Up @@ -136,7 +137,9 @@ abstract class CoreMainActivity : BaseActivity(), WebViewProvider {
CoroutineScope(Dispatchers.IO).launch {
objectBoxToRoomMigrator.migrateObjectBoxDataToRoom()
}
createApplicationShortcuts()
lifecycleScope.launch(Dispatchers.IO) {
createApplicationShortcuts()
}
handleBackPressed()
}

Expand Down

0 comments on commit a2341ba

Please sign in to comment.