-
Notifications
You must be signed in to change notification settings - Fork 599
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: Features-> Auth Module . #2239
Conversation
WhatsApp.Video.2024-11-14.at.23.46.50_9699878a.mp4 |
fun NavController.navigateToMainGraph(){ | ||
val options = navOptions { | ||
popUpTo(graph.findStartDestination().id) { | ||
saveState = false | ||
} | ||
launchSingleTop = true | ||
restoreState = false | ||
} | ||
navigate(MifosNavGraph.MAIN_GRAPH , options) | ||
|
||
|
||
|
||
} |
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.
we don't need it.
The error can be fixed by changing the Navroute of MifosNavGraph.MainGraph or passcodegraph.mainscreengraph
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.
Done Bhai
composable(MifosNavGraph.MAIN_GRAPH){ | ||
HomeNavigation() | ||
} |
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 here? we already have one called homeGraph
…odule-CleanUp # Conflicts: # mifosng-android/src/main/java/com/mifos/mifosxdroid/AndroidClient.kt
<activity | ||
android:name=".activity.setting.SettingsActivity" | ||
android:label="@string/settings" | ||
android:parentActivityName=".activity.home.HomeActivity" | ||
android:screenOrientation="portrait"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value=".activity.home.HomeActivity" /> | ||
</activity> | ||
|
||
|
||
|
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.
we already cleaned up feature settings
. why are we adding this?
<fragment | ||
android:id="@+id/checkerInboxTasksFragment" | ||
android:name="com.mifos.mifosxdroid.online.checkerinbox.CheckerInboxTasksFragment" | ||
android:label="CheckerInboxTasksFragment"> | ||
<action | ||
android:id="@+id/action_checkerInboxTasksFragment_to_checkerInboxFragment" | ||
app:destination="@id/checkerInboxFragment" /> | ||
</fragment> | ||
|
||
|
||
<fragment | ||
android:id="@+id/checkerInboxFragment" | ||
android:name="com.mifos.mifosxdroid.online.checkerinbox.CheckerInboxFragment" | ||
android:label="CheckerInboxFragment" /> | ||
|
||
|
||
<fragment | ||
android:id="@+id/individualCollectionSheetFragment" | ||
android:name="com.mifos.mifosxdroid.online.collectionsheetindividual.IndividualCollectionSheetFragment" | ||
android:label="IndividualCollectionSheetFragment"> | ||
|
||
<action | ||
android:id="@+id/action_individualCollectionSheetFragment_to_individualCollectionSheetDetailsFragment" | ||
app:destination="@id/individualCollectionSheetDetailsFragment" /> | ||
|
||
</fragment> | ||
|
||
|
||
<fragment | ||
android:id="@+id/generateCollectionSheetFragment" | ||
android:name="com.mifos.mifosxdroid.online.generatecollectionsheet.GenerateCollectionSheetFragment" | ||
android:label="GenerateCollectionSheetFragment" /> | ||
|
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 again? Wasn't it already removed during the previous cleanup process?
<fragment | ||
android:id="@+id/individualCollectionSheetDetailsFragment" | ||
android:name="com.mifos.mifosxdroid.online.collectionsheetindividualdetails.IndividualCollectionSheetDetailsFragment" | ||
android:label="IndividualCollectionSheetDetailsFragment"> | ||
<argument | ||
android:name="sheet" | ||
app:argType="com.mifos.core.objects.collectionsheet.IndividualCollectionSheet" /> | ||
<argument | ||
android:name="actualDisbursementDate" | ||
app:argType="string" /> | ||
<argument | ||
android:name="transactionDate" | ||
app:argType="string" /> | ||
<action | ||
android:id="@+id/action_individualCollectionSheetDetailsFragment_to_paymentDetailsFragment" | ||
app:destination="@id/paymentDetailsFragment" /> | ||
</fragment> | ||
<fragment | ||
android:id="@+id/paymentDetailsFragment" | ||
android:name="com.mifos.mifosxdroid.online.collectionsheetindividualdetails.PaymentDetailsFragment" | ||
android:label="PaymentDetailsFragment"> | ||
<argument | ||
android:name="position" | ||
app:argType="integer" /> | ||
<argument | ||
android:name="payload" | ||
app:argType="com.mifos.core.network.model.IndividualCollectionSheetPayload" /> | ||
<argument | ||
android:name="paymentTypeList" | ||
app:argType="string[]" /> | ||
<argument | ||
android:name="loanAndClientName" | ||
app:argType="com.mifos.core.objects.collectionsheet.LoanAndClientName" /> | ||
<argument | ||
android:name="paymentTypeOptions" | ||
app:argType="com.mifos.core.objects.accounts.loan.PaymentTypeOptions[]" /> | ||
<argument | ||
android:name="clientId" | ||
app:argType="integer" /> | ||
</fragment> | ||
|
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.
same here as well
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.
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.