Fix some warnings & recreate lint-baseline.xml (#4278)

This commit is contained in:
Konrad Pozniak 2024-02-25 16:20:26 +01:00 committed by GitHub
commit 6249b53718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 119 additions and 75 deletions

View file

@ -966,7 +966,7 @@ class ComposeActivity :
private fun onMediaPick() {
addMediaBehavior.addBottomSheetCallback(
object : BottomSheetBehavior.BottomSheetCallback() {
object : BottomSheetCallback() {
override fun onStateChanged(bottomSheet: View, newState: Int) {
// Wait until bottom sheet is not collapsed and show next screen after
if (newState == BottomSheetBehavior.STATE_COLLAPSED) {

View file

@ -54,7 +54,7 @@ class CaptionDialog : DialogFragment() {
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
) = inflater.inflate(R.layout.dialog_image_description, container, false)
): View = inflater.inflate(R.layout.dialog_image_description, container, false)
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
val imageView = binding.imageDescriptionView