Skip to content

refactor: remove deprecated getCurrentAccount() from interface#16484

Closed
joshtrichards wants to merge 3 commits into
masterfrom
jtr/drop-deprecated-getCurrentAccount
Closed

refactor: remove deprecated getCurrentAccount() from interface#16484
joshtrichards wants to merge 3 commits into
masterfrom
jtr/drop-deprecated-getCurrentAccount

Conversation

@joshtrichards

Copy link
Copy Markdown
Member

Remove getCurrentAccount() method from CurrentAccountProvider interface.
The method was deprecated in favor of getUser() and had only one external
caller (DrawerActivity), which has been migrated to use getUser() instead.

The implementation in UserAccountManagerImpl remains as it's still used
internally by getUser(), but removing it from the interface prevents new
code from depending on the deprecated Account-based API.

Refs: #4853, #4835

🖼️ Screenshots

🏚️ Before 🏡 After
B A

🏁 Checklist

  • Tests written, or not not needed

@joshtrichards joshtrichards added 3. to review technical debt Refactoring or cleanup needed to improve maintainability. feature: authentication Authentication or accounts related ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Feb 8, 2026
Signed-off-by: Josh <josh.t.richards@gmail.com>
…ovider

Remove getCurrentAccount() method from CurrentAccountProvider interface. The method was deprecated in favor of getUser() and had only one external caller (DrawerActivity), which has been migrated to use getUser() instead.

The implementation in UserAccountManagerImpl remains as it's still used internally by getUser(), but removing it from the interface prevents new code from depending on the deprecated Account-based API.

Refs: #4853, #4835

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@alperozturk96 alperozturk96 force-pushed the jtr/drop-deprecated-getCurrentAccount branch from d7beab0 to 691e33b Compare February 9, 2026 08:20

@alperozturk96 alperozturk96 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hello

Thank you for the PR. SessionMixing still using.

Image

and eventually other classes...

Image

@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@joshtrichards

Copy link
Copy Markdown
Member Author

Oops. I should have checked Kotlin property access paths. Doh!

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

Labels

3. to review feature: authentication Authentication or accounts related ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt Refactoring or cleanup needed to improve maintainability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants