Skip to content

music player - #9

Open
Hekapo wants to merge 1 commit into
mainfrom
task8
Open

Hekapo wants to merge 1 commit into
mainfrom
task8

Conversation

@Hekapo

@Hekapo Hekapo commented Dec 11, 2021

Copy link
Copy Markdown
Owner

забыл сделать pull request(

}
private val musicPresenter = MusicListPresenter(this)

private lateinit var mActivity: FragmentActivity

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

неее, фрагмент на прямую не держит ссылку на активити. Тем более лейт инитом, тебе минимум нужно чистить память в onDestroy, а так это утечка памяти



fun createNotification(song: Song) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Так у тебя мин апи 26, зачем тебе проверка на 26 апи?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants