Skip to content

Commit

Permalink
Migrated Java profile package to kotlin (#6119)
Browse files Browse the repository at this point in the history
* Rename .java to .kt

* Migrate Profile Package to Kotlin #6118 #5928

* Migrate Profile Package to Kotlin #6118 #5928

* Migrate Profile Package to Kotlin #6118 #5928
  • Loading branch information
Sujal-Gupta-SG authored Jan 16, 2025
1 parent 62136b5 commit 70291a0
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 269 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1754,10 +1754,11 @@ class MediaDetailFragment : CommonsDaggerSupportFragment(), CategoryEditHelper.C
return
}
ProfileActivity.startYourself(
activity,
media!!.user,
sessionManager.userName != media!!.user
requireActivity(), // Ensure this is a non-null Activity context
media?.user ?: "", // Provide a fallback value if media?.user is null
sessionManager.userName != media?.user // This can remain as is, null check will apply
)

}

/**
Expand Down
265 changes: 0 additions & 265 deletions app/src/main/java/fr/free/nrw/commons/profile/ProfileActivity.java

This file was deleted.

Loading

0 comments on commit 70291a0

Please sign in to comment.