This repository was archived by the owner on Jul 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
app/src/main/java/com/example/android/uamp
common/src/main/java/com/example/android/uamp/media Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,10 @@ package com.example.android.uamp
1818
1919import android.media.AudioManager
2020import android.os.Bundle
21- import android.util.Log
2221import android.view.Menu
2322import androidx.activity.viewModels
2423import androidx.appcompat.app.AppCompatActivity
2524import androidx.lifecycle.Observer
26- import androidx.lifecycle.ViewModelProviders
27- import androidx.mediarouter.media.MediaControlIntent
28- import androidx.mediarouter.media.MediaRouteSelector
29- import androidx.mediarouter.media.MediaRouter
30- import androidx.mediarouter.media.MediaRouterParams
3125import com.example.android.uamp.fragments.MediaItemFragment
3226import com.example.android.uamp.media.MusicService
3327import com.example.android.uamp.utils.Event
@@ -36,7 +30,6 @@ import com.example.android.uamp.viewmodels.MainActivityViewModel
3630import com.google.android.gms.cast.framework.CastButtonFactory
3731import com.google.android.gms.cast.framework.CastContext
3832
39-
4033class MainActivity : AppCompatActivity () {
4134
4235 private val viewModel by viewModels<MainActivityViewModel > {
@@ -121,5 +114,3 @@ class MainActivity : AppCompatActivity() {
121114 return supportFragmentManager.findFragmentByTag(mediaId) as MediaItemFragment ?
122115 }
123116}
124-
125- private const val TAG = " MainActivity"
Original file line number Diff line number Diff line change @@ -523,10 +523,7 @@ open class MusicService : MediaBrowserServiceCompat() {
523523 } else {
524524
525525 val playbackStartPositionMs =
526- extras?.getLong(
527- MEDIA_DESCRIPTION_EXTRAS_START_PLAYBACK_POSITION_MS ,
528- C .TIME_UNSET
529- )
526+ extras?.getLong(MEDIA_DESCRIPTION_EXTRAS_START_PLAYBACK_POSITION_MS , C .TIME_UNSET )
530527 ? : C .TIME_UNSET
531528
532529 preparePlaylist(
You can’t perform that action at this time.
0 commit comments