package Ġcom . d inar ap aran id . pri ma . view models . mv vm Ċ Ċ import Ġandroid . view . View Ċ import Ġcom . d inar ap aran id . pri ma . MainActivity Ċ import Ġcom . d inar ap aran id . pri ma . utils . extensions . unchecked Ċ import Ġcom . d inar ap aran id . pri ma . utils . pol ym orphism . run On UIT hread Ċ import Ġjava . lang . ref . Weak Reference Ċ Ċ /** Ċ Ġ* ĠMV VM ĠView ĠModel Ġfor Ċ Ġ* Ġ[ com . d inar ap aran id . pri ma . MainActivity ] Ċ Ġ*/ Ċ Ċ class ĠMainActivity ViewModel ( private Ġval Ġ_ activity : ĠWeak Reference < MainActivity >) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġinline Ġval Ġactivity ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ activity . unchecked ĊĊĠĠĠ Ġ@ Jvm Name (" lift Playing Menu ") ĊĠĠĠ Ġinternal Ġfun Ġlift Playing Menu () Ġ= Ġactivity . lift Playing Menu () ĊĊĠĠĠ Ġ@ Jvm Name (" on Playing Prev Track Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Playing Prev Track Clicked () Ġ= Ġactivity . on Playing Prev Track Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Playing Next Track Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Playing Next Track Clicked () Ġ= Ġactivity . on Playing Next Track Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Playing Album Image Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Playing Album Image Clicked () Ġ= Ġactivity . lift Playing Menu () ĊĊĠĠĠ Ġ@ Jvm Name (" onNext Track Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Next Track Button Clicked () Ġ= Ġactivity . run Ġ{ ĊĠĠĠĠĠĠĠ Ġrun On UIT hread Ġ{ Ġplay Next And Up d UI ( is Lock ing Ġ= Ġtrue ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Jvm Name (" on Prev Track Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Prev Track Button Clicked () Ġ= Ġactivity . run Ġ{ ĊĠĠĠĠĠĠĠ Ġrun On UIT hread Ġ{ Ġplay Prev And Up d UI ( is Lock ing Ġ= Ġtrue ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Jvm Name (" on Record Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Record Button Clicked () Ġ= Ġactivity . on Record Button Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Repeat Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Repeat Button Clicked () Ġ= Ġactivity . update Loop ing () ĊĊĠĠĠ Ġ@ Jvm Name (" on Playlist Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Playlist Button Clicked () Ġ= Ġactivity . on Playlist Button Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Sleep Timer Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Sleep Timer Clicked () Ġ= Ġactivity . on Sleep Timer Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Return Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Return Button Clicked () Ġ= Ġactivity . on Return Button Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Track Settings Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Track Settings Button Clicked ( view : ĠView ) Ġ= Ġactivity . on Track Settings Button Clicked ( view ) ĊĊĠĠĠ Ġ@ Jvm Name (" on Play Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Play Button Clicked () Ġ= Ġactivity . on Play Button Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Playing Play Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Playing Play Button Clicked () Ġ= Ġactivity . on Playing Play Button Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Equal izer Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Equal izer Button Clicked () Ġ= Ġactivity . on Equal izer Button Clicked () ĊĊĠĠĠ Ġ@ Jvm Name (" on Trim Button Clicked ") ĊĠĠĠ Ġinternal Ġfun Ġon Trim Button Clicked () Ġ= Ġactivity . on Trim Button Clicked () Ċ }