mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Add null object checker
This commit is contained in:
parent
a692862b02
commit
54c01d4dfb
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@ package com.cappielloantonio.play.ui.fragment;
|
|||
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.text.Html;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
|
@ -279,7 +278,7 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
|||
|
||||
final Handler handler = new Handler();
|
||||
final Runnable r = () -> {
|
||||
bodyBind.playerSongCoverViewPager.setCurrentItem(position, false);
|
||||
if (bind != null) bodyBind.playerSongCoverViewPager.setCurrentItem(position, false);
|
||||
};
|
||||
handler.postDelayed(r, 100);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue