Skip to content

内存泄漏 #18

@SMAXLYB

Description

@SMAXLYB
CardDatePickerDialog.builder(activity)
                    .setMaxTime(System.currentTimeMillis())
                    .showBackNow(false)
                    .setDisplayType(
                        mutableListOf(
                            DateTimeConfig.YEAR,
                            DateTimeConfig.MONTH
                        )
                    )
                    .setThemeColor(Color.parseColor("#03A9F4"))
                    .setLabelText(year = "", month = "")
                    .setOnChoose { millisecond ->
                        mAnalyzeViewModel.queryDateLiveData.value = millisecond
                    }
                    .build()
                    .show()

弹窗关闭后,使用leakCanary检测到内存泄漏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions