Fix for issue #376: Fix tab highlighting for Single Account navigation #464
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title: This pull request fixes issue #376 on the
end
branch by updating the logic inRallyActivity.kt
to handle the edge case described in the issue.Description:
This pull request addresses an issue where the
Accounts
tab was not highlighted when navigating to a specific single account page in theend
version of the code.Changes Made:
single_account
.Explanation:
When navigating to a single account, the page's route can be
single_account/Checking
,single_account/Home Savings
, orsingle_account/Car Savings
. These routes do not match the predefined tab routes (overview
,accounts
,bills
), causing the original code to fall back to theOverview
page.The fix adds a condition to highlight the
Accounts
tab if the current route starts withsingle_account
, ensuring the correct tab is highlighted.I hope this resolves the issue effectively. If there are any questions or further changes needed, please let me know.