-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2b4926
commit 05defcb
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// SPDX-FileCopyrightText: 2019-2021 aTox contributors | ||
// SPDX-FileCopyrightText: 2019-2024 Robin Lindén <[email protected]> | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
|
||
|
@@ -58,7 +58,7 @@ class MainActivity : AppCompatActivity() { | |
handleIntent(intent) | ||
} | ||
|
||
override fun onNewIntent(intent: Intent?) { | ||
override fun onNewIntent(intent: Intent) { | ||
super.onNewIntent(intent) | ||
handleIntent(intent) | ||
} | ||
|
@@ -73,8 +73,8 @@ class MainActivity : AppCompatActivity() { | |
autoAway.onForeground() | ||
} | ||
|
||
private fun handleIntent(intent: Intent?) { | ||
when (intent?.action) { | ||
private fun handleIntent(intent: Intent) { | ||
when (intent.action) { | ||
Intent.ACTION_VIEW -> handleToxLinkIntent(intent) | ||
Intent.ACTION_SEND -> handleShareIntent(intent) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters