Skip to content

Added Logout button #48

Open
iamsh4shank wants to merge 1 commit intoajay-prabhakar:masterfrom
iamsh4shank:patch-1
Open

Added Logout button #48
iamsh4shank wants to merge 1 commit intoajay-prabhakar:masterfrom
iamsh4shank:patch-1

Conversation

@iamsh4shank
Copy link

Fixed #46

Changes: Added the logout button in view profile page, after pressing user will go back to new handler search.(Files Changed - ProfileActivity.java, activity_profile.xml, HomeFeedActivity)

Screenshots of the change:
CodeforcesResolved1

Copy link
Owner

@ajay-prabhakar ajay-prabhakar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @robustTechie thanks for the PR and good work I suggested some changes here please go on it

}
}
public void logOut(){
Intent intent = new Intent(this,MainActivity.class);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we give the direct intent then when we press the back button then it will come back the previous activity so, App will crashes by taking 2 usernames avoid that behaviour

@ajay-prabhakar
Copy link
Owner

we have the plugin called spotless it will automatically make some better code by running the command ./gradlew spotlessApply please make sure that you done this before sending PR that is the reason your build is failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Sign in with another" not working

2 participants