Skip to content

Commit ea50cf8

Browse files
chore: add deprecation warnings to overrides in RegisteredUser
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 3160ced commit ea50cf8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/com/nextcloud/client/account/RegisteredUser.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ internal data class RegisteredUser(
4141
return account.name
4242
}
4343

44+
@Deprecated("Temporary workaround: Legacy Android Account access. Refactor code to use User object directly instead of platform Account.")
4445
override fun toPlatformAccount(): Account = account
4546

47+
@Deprecated("Temporary workaround: Legacy OwnCloudAccount access. Refactor code to use User object directly instead of OwnCloudAccount.")
4648
override fun toOwnCloudAccount(): OwnCloudAccount = ownCloudAccount
4749

4850
override fun nameEquals(user: User?): Boolean = nameEquals(user?.accountName)

0 commit comments

Comments
 (0)