Change-Id: I1d539acc4e8bae4a0f9996297936e5c862679660
if (AudioManager.ACTION_AUDIO_BECOMING_NOISY.equals(intentAction)) {
startService(context, MusicPlaybackService.CMDPAUSE);
} else if (Intent.ACTION_MEDIA_BUTTON.equals(intentAction)) {
if (AudioManager.ACTION_AUDIO_BECOMING_NOISY.equals(intentAction)) {
startService(context, MusicPlaybackService.CMDPAUSE);
} else if (Intent.ACTION_MEDIA_BUTTON.equals(intentAction)) {
- final KeyEvent event = (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
+ final KeyEvent event = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
if (event == null) {
return;
}
if (event == null) {
return;
}
private void setupSongList() {
mSongs = (ListView)mRootView.findViewById(R.id.songs);
private void setupSongList() {
mSongs = (ListView)mRootView.findViewById(R.id.songs);
- mHeader = (ViewGroup)LayoutInflater.from(getActivity()).
+ mHeader = LayoutInflater.from(getActivity()).
inflate(R.layout.artist_detail_header, mSongs, false);
mSongs.addHeaderView(mHeader);
mSongs.setOnScrollListener(this);
inflate(R.layout.artist_detail_header, mSongs, false);
mSongs.addHeaderView(mHeader);
mSongs.setOnScrollListener(this);