Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 0c7566a

Browse files
committed
Remove unecessary edits
1 parent 3a1eecb commit 0c7566a

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

app/src/main/java/com/example/android/uamp/MainActivity.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,10 @@ package com.example.android.uamp
1818

1919
import android.media.AudioManager
2020
import android.os.Bundle
21-
import android.util.Log
2221
import android.view.Menu
2322
import androidx.activity.viewModels
2423
import androidx.appcompat.app.AppCompatActivity
2524
import 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
3125
import com.example.android.uamp.fragments.MediaItemFragment
3226
import com.example.android.uamp.media.MusicService
3327
import com.example.android.uamp.utils.Event
@@ -36,7 +30,6 @@ import com.example.android.uamp.viewmodels.MainActivityViewModel
3630
import com.google.android.gms.cast.framework.CastButtonFactory
3731
import com.google.android.gms.cast.framework.CastContext
3832

39-
4033
class 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"

common/src/main/java/com/example/android/uamp/media/MusicService.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)