From 359e418311f28460b8dcac7892f849bf63fe0c54 Mon Sep 17 00:00:00 2001 From: Ronald Zhang <117058806+rrhzhang@users.noreply.github.com> Date: Sun, 21 Apr 2024 14:16:25 -0400 Subject: [PATCH] fixed redirect to profileactivity once connected to spotify --- .../com/example/spotifywrapped2340/SpotifyLoginActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/example/spotifywrapped2340/SpotifyLoginActivity.java b/app/src/main/java/com/example/spotifywrapped2340/SpotifyLoginActivity.java index 51c05e5..6b2b561 100644 --- a/app/src/main/java/com/example/spotifywrapped2340/SpotifyLoginActivity.java +++ b/app/src/main/java/com/example/spotifywrapped2340/SpotifyLoginActivity.java @@ -93,6 +93,8 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.d("TOKEN SUCCESS", response.getAccessToken()); SpotifyManager.setAccessToken(response.getAccessToken()); SpotifyManager.getInstance(getApplicationContext()).getUserProfile(this); + Intent intent = new Intent(getApplicationContext(), ProfileActivity.class); + startActivity(intent); } }