mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +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.content.ComponentName;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
@ -74,11 +75,9 @@ public class PlayerQueueFragment extends Fragment implements ClickCallback {
|
||||||
updateNowPlayingItem();
|
updateNowPlayingItem();
|
||||||
try {
|
try {
|
||||||
long position = mediaBrowserListenableFuture.get().getCurrentMediaItemIndex();
|
long position = mediaBrowserListenableFuture.get().getCurrentMediaItemIndex();
|
||||||
// hopefully this cast dont bite us in the arse hehe
|
|
||||||
bind.playerQueueRecyclerView.scrollToPosition((int) position);
|
bind.playerQueueRecyclerView.scrollToPosition((int) position);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//dont worry about it
|
Log.e("PlayerQueueFragment", "Failed to get mediaBrowserListenableFuture in onResume", e);
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue