Skip to content

Commit

Permalink
fix: adds a default config to resolve focus issue for Portals apps
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpoole committed Apr 22, 2022
1 parent 3d5a91d commit 18d7664
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ open class PortalFragment : Fragment {
if (portal != null) {
val startDir: String = portal?.startDir!!
initialPlugins.addAll(portal?.plugins!!)

if(config == null) {
config = CapConfig.Builder(requireContext()).setInitialFocus(false).create()
}

bridge = Bridge.Builder(this)
.setInstanceState(savedInstanceState)
.setPlugins(initialPlugins)
Expand Down

0 comments on commit 18d7664

Please sign in to comment.