title: When trying to implement Branch.io deep-linking using their share sheet, no action executes
body: <p>I am trying to implement deep linking with branch and having issues with the Share Sheet. It just doesn't work. No matter what I click, the relevant action doesn't happen and it just goes back to the bottom of the screen. Even when I click copy, the text doesn't copy. there are no errors so I don't know what's wrong.</p>
  
  <p>This is my code (it is a single item in a recyclerView. I am using GroupieAdapter):</p>
  
  <pre><code>class SingleCommunityOption(val community: Community, val activity : MainActivity) : Item&lt;ViewHolder&gt;() {
  
      private lateinit var buo: BranchUniversalObject
      private lateinit var lp: LinkProperties
  
      override fun getLayout(): Int {
          return R.layout.community_option_layout
      }
  
      override fun bind(viewHolder: ViewHolder, position: Int) {
  
          val firebaseAnalytics = FirebaseAnalytics.getInstance(viewHolder.root.context!!)
  
          val title = viewHolder.itemView.community_option_title
          val description = viewHolder.itemView.community_option_description
          val memberCount = viewHolder.itemView.community_option_members_count
          val share= viewHolder.itemView.community_share
  
          title.text = community.title
          description.text = community.description
          memberCount.text = "${community.members}"
  
  
          buo = BranchUniversalObject()
              .setCanonicalIdentifier(community.id)
              .setTitle(community.title)
              .setContentDescription("")
           .setContentIndexingMode(BranchUniversalObject.CONTENT_INDEX_MODE.PUBLIC)
              .setLocalIndexMode(BranchUniversalObject.CONTENT_INDEX_MODE.PUBLIC)
              .setContentMetadata(ContentMetadata().addCustomMetadata("type", "community"))
  
          lp = LinkProperties()
  
          buo.listOnGoogleSearch(viewHolder.root.context)
  
          share.setOnClickListener {
              val ss = ShareSheetStyle(activity, "Republic invite", "Join me in this republic.")
                  .setCopyUrlStyle(activity.resources.getDrawable(android.R.drawable.ic_menu_send), "Copy", "Added to clipboard")
                  .setMoreOptionStyle(activity.resources.getDrawable(android.R.drawable.ic_menu_search), "Show more")
                  .addPreferredSharingOption(SharingHelper.SHARE_WITH.FACEBOOK)
                  .addPreferredSharingOption(SharingHelper.SHARE_WITH.FACEBOOK_MESSENGER)
                  .addPreferredSharingOption(SharingHelper.SHARE_WITH.WHATS_APP)
                  .addPreferredSharingOption(SharingHelper.SHARE_WITH.TWITTER)
                  .setAsFullWidthStyle(true)
                  .setSharingTitle("Share With")
  
              buo.showShareSheet(activity, lp, ss, object : Branch.BranchLinkShareListener {
                  override fun onShareLinkDialogLaunched() {}
                  override fun onShareLinkDialogDismissed() {}
                  override fun onLinkShareResponse(sharedLink: String, sharedChannel: String, error: BranchError) {}
                  override fun onChannelSelected(channelName: String) {
                      firebaseAnalytics.logEvent("community_shared_$channelName", null)
                  }
              })
          }
  
      }
  }
  </code></pre>