Skip to content

Commit

Permalink
Allow ACTIVATE intents to create & start the app
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Feb 13, 2020
1 parent 8dd1e29 commit e7fba41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/tech/httptoolkit/android/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {

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

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

0 comments on commit e7fba41

Please sign in to comment.