Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThuySinhNhat committed May 24, 2024
1 parent eb59d41 commit 9eb2449
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ gen/
.gradle/
build/

sample
sample/

# Local configuration file (sdk path, etc)
local.properties

Expand Down
2 changes: 1 addition & 1 deletion auth0/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ project.afterEvaluate {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ public open class AuthenticationActivity : Activity() {
activity.startActivityForResult(intent, requestCode)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class DatabaseLoginFragment : Fragment() {
.withScheme(getString(R.string.com_auth0_scheme))
.withAudience(audience)
.withScope(scope)
.start(requireContext(), object : Callback<Credentials, AuthenticationException> {
.start(requireActivity(), object : Callback<Credentials, AuthenticationException> {
override fun onSuccess(result: Credentials) {
credentialsManager.saveCredentials(result)
Snackbar.make(
Expand All @@ -190,7 +190,7 @@ class DatabaseLoginFragment : Fragment() {
.withScheme(getString(R.string.com_auth0_scheme))
.withAudience(audience)
.withScope(scope)
.await(requireContext())
.await(requireActivity())
credentialsManager.saveCredentials(credentials)
Snackbar.make(
requireView(),
Expand Down

0 comments on commit 9eb2449

Please sign in to comment.