Skip to content

Commit 73acbf8

Browse files
authored
Refactor onCreate and onNewIntent methods
1 parent 1e8bfe2 commit 73acbf8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/SwitchBrowserActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class SwitchBrowserActivity : FragmentActivity() {
9090
* @param savedInstanceState Saved instance state bundle (unused in this implementation)
9191
*/
9292
override fun onCreate(savedInstanceState: Bundle?) {
93-
val methodTag = "$TAG:onCreate"
9493
super.onCreate(savedInstanceState)
94+
val methodTag = "$TAG:onCreate"
9595
Logger.info(methodTag, "SwitchBrowserActivity created - Launching browser")
9696
launchBrowser()
9797
}
@@ -164,9 +164,9 @@ class SwitchBrowserActivity : FragmentActivity() {
164164
*
165165
* @param intent The intent containing the authentication result from the browser redirect
166166
*/
167-
override fun onNewIntent(intent: Intent) {
168-
val methodTag = "$TAG:onNewIntent"
167+
override fun onNewIntent(intent: Intent?) {
169168
super.onNewIntent(intent)
169+
val methodTag = "$TAG:onNewIntent"
170170
// Update the activity's intent with the new intent containing the auth result
171171
Logger.info(methodTag, "On new intent received.")
172172
setIntent(intent)

0 commit comments

Comments
 (0)