-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug + Refactor : Auth Module #2237
Conversation
}, | ||
onSuccessNavigate = { | ||
startActivity(Intent(this, HomeActivity::class.java)) | ||
finish() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we adding this? In compose we only need one activity, this LoginActivity.kt
file should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed it in #2235 bhai. Hold on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Darkeye14 Login comes under auth.. Anything that is not related to settings-module should not get deleted in settingsPR
navigatePasscode = {}, | ||
navigateHome = navController::navigateHome, | ||
updateServerConfig = {} | ||
updateServerConfig = {}, | ||
onSuccessNavigate = navController ::navigateHome |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 navigateHome?
# Conflicts: # feature/auth/src/main/java/com/mifos/feature/auth/login/LoginScreen.kt # feature/auth/src/main/java/com/mifos/feature/auth/login/LoginUiState.kt # feature/auth/src/main/java/com/mifos/feature/auth/navigation/AuthNavigation.kt
if (prefManager.getPassCodeStatus()) { | ||
_loginUiState.value = LoginUiState.HomeActivityIntent | ||
} else { | ||
_loginUiState.value = LoginUiState.PassCodeActivityIntent | ||
} | ||
_loginUiState.value = LoginUiState.HomeActivityIntent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't do this. Fix authNavgraph of Login Screen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bhai, i think this could be the right logic. lets connect in gmeet whenever you are free
I'll be closing this Now. |
Fixes #Issue_Number
MIFOSAC-277
1)Fixes Post Login navigation issue.
2) CleanUp of Auth Module
3)Applying Spotless and detekt
Please Add Screenshots If there are any UI changes.
WhatsApp.Video.2024-11-13.at.20.17.31_45a044b3.mp4
Please make sure these boxes are checked before submitting your pull request - thanks!
Apply the
MifosStyle.xml
style template to your code in Android Studio.Run the unit tests with
./gradlew check
to make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.