fix: null checking
This commit is contained in:
1 parent
8fe66d058e
commit
5bbab10485
1 file changed
+4
-1
@@ -80,7 +80,10 @@ public class PlayerCoverFragment extends Fragment {
|
|||||||
|
|
||||||
handler.removeCallbacksAndMessages(null);
|
handler.removeCallbacksAndMessages(null);
|
||||||
|
|
||||||
final Runnable runnable = () -> bind.nowPlayingTapButton.setVisibility(View.GONE);
|
final Runnable runnable = () -> {
|
||||||
|
if (bind != null) bind.nowPlayingTapButton.setVisibility(View.GONE);
|
||||||
|
};
|
||||||
|
|
||||||
handler.postDelayed(runnable, 10000);
|
handler.postDelayed(runnable, 10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user