Skip to content

Commit

Permalink
Fix big bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JSnipes29 committed Sep 29, 2023
1 parent 5491083 commit 3d405bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class HomeFragment : Fragment() {

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
getHomePage()
OAuth2NetworkManager(mActivity).getAccessToken {
getHomePage()
}
}
@RequiresApi(Build.VERSION_CODES.M)
private fun getHomePage() {
Expand All @@ -89,7 +91,6 @@ class HomeFragment : Fragment() {
val sessionID = sp.getString(getString(R.string.huntsmanGSR_SessionID), "")
val accountID = sp.getString(getString(R.string.accountID), "")
val deviceID = OAuth2NetworkManager(mActivity).getDeviceId()
OAuth2NetworkManager(mActivity).getAccessToken()
val bearerToken = "Bearer " + sp.getString(getString(R.string.access_token), "").toString()
Log.i("HomeFragment", bearerToken)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class MainActivity : AppCompatActivity() {
if (pennKey == null && !guestMode) {
startLoginFragment()
} else {
OAuth2NetworkManager(this).getAccessTokenStartup()
startHomeFragment()
}
}

Expand Down

0 comments on commit 3d405bc

Please sign in to comment.