Skip to content

Commit

Permalink
Fix interaction with Bonfo2
Browse files Browse the repository at this point in the history
  • Loading branch information
Octav14n committed Sep 3, 2024
1 parent 7105b20 commit e95a189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
android:exported="true"
android:launchMode="singleTask"
android:excludeFromRecents="true"
android:noHistory="true"
android:taskAffinity=".ShareUpdateActivity"
android:theme="@style/Theme.NoView">
<intent-filter>
Expand All @@ -57,6 +58,7 @@
android:name=".ShareUnNewActivity"
android:exported="true"
android:launchMode="singleTask"
android:excludeFromRecents="true"
android:noHistory="true"
android:taskAffinity=".ShareUnNewActivity"
android:theme="@style/Theme.NoView">
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/schnuff/bofilo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class MainActivity : AppCompatActivity() {
val extra = intent.getStringExtra(Intent.EXTRA_TEXT) ?: return

when (intent.action) {
Intent.ACTION_SEND -> ShareUpdateActivity.scheduleDownload(this, extra)
Intent.ACTION_SEND, "eu.schnuff.bofilo.action.download" -> ShareUpdateActivity.scheduleDownload(this, extra)
ShareUnNewActivity.INTENT -> ShareUnNewActivity.unNewStory(this, extra.toUri())
else -> Log.w(this::class.simpleName, "Intent is not supported: " + intent.action)
}
Expand Down

0 comments on commit e95a189

Please sign in to comment.