Skip to content

Commit e7fba41

Browse files
committed
Allow ACTIVATE intents to create & start the app
1 parent 8dd1e29 commit e7fba41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/tech/httptoolkit/android/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
101101

102102
Log.i(TAG, "Main activity created")
103103

104-
// Are we being opened by a VIEW intent? I.e. a barcode scan/URL elsewhere on the device
105-
if (intent != null && intent.action == Intent.ACTION_VIEW) {
104+
// Are we being opened by an intent? I.e. a barcode scan/URL elsewhere on the device
105+
if (intent != null) {
106106
onNewIntent(intent)
107107
} else {
108108
// If not, check if this is a post-install run, and if so configure automatically

0 commit comments

Comments
 (0)