mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
log in catch statement in PlayerQueueFragment:onResume
This commit is contained in:
parent
4d1d953a3a
commit
140546ca4d
1 changed files with 2 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ package com.cappielloantonio.tempo.ui.fragment;
|
|||
|
||||
import android.content.ComponentName;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
|
@ -74,11 +75,9 @@ public class PlayerQueueFragment extends Fragment implements ClickCallback {
|
|||
updateNowPlayingItem();
|
||||
try {
|
||||
long position = mediaBrowserListenableFuture.get().getCurrentMediaItemIndex();
|
||||
// hopefully this cast dont bite us in the arse hehe
|
||||
bind.playerQueueRecyclerView.scrollToPosition((int) position);
|
||||
} catch (Exception e) {
|
||||
//dont worry about it
|
||||
e.printStackTrace();
|
||||
Log.e("PlayerQueueFragment", "Failed to get mediaBrowserListenableFuture in onResume", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue