Skip to content

Commit

Permalink
fix solution for denied embedding problems
Browse files Browse the repository at this point in the history
  • Loading branch information
kidozh committed Dec 16, 2021
1 parent d726732 commit 290d70a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
19 changes: 19 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,25 @@
android:value="androidx.startup"/>
</provider>
</application>

<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="http" />
</intent>
<intent>
<action android:name="android.intent.action.DIAL" />
<data android:scheme="tel" />
</intent>
<intent>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="*/*" />
</intent>
</queries>



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,10 @@ class ForumActivity : BaseStatusActivity(), OnRefreshBtnListener, OnLinkClickedL
R.id.bbs_forum_nav_show_in_external_browser -> {
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(currentUrl))
Log.d(TAG, "Inputted URL $currentUrl")
startActivity(intent)
if (intent.resolveActivity(packageManager) != null) {
startActivity(intent)
}
//startActivity(intent)
true
}
R.id.bbs_settings -> {
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/xml/main_split_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
window:secondaryActivityName="com.kidozh.discuzhub.activities.SettingsActivity"/>


<SplitPairFilter
window:primaryActivityName="*"
window:secondaryActivityName="*/*"
window:secondaryActivityAction="android.intent.action.VIEW"/>
<!-- <SplitPairFilter-->
<!-- window:primaryActivityName="*"-->
<!-- window:secondaryActivityName="*/*"-->
<!-- window:secondaryActivityAction="android.intent.action.VIEW"/>-->
</SplitPairRule>

<!-- Automatically launch a placeholder for the list activity. -->
Expand Down

0 comments on commit 290d70a

Please sign in to comment.