Commit 43e612df authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE on setUserVisibleHint

parent ed263b0c
......@@ -713,4 +713,13 @@ public class AudioPlayer extends Fragment implements IAudioPlayer, View.OnClickL
if(activity != null)
activity.showTipViewIfNeeded(R.layout.audio_player_tips, PREF_AUDIOPLAYER_TIPS_SHOWN);
* Override this method to prefent NPE on mFragmentManager reference.
public void setUserVisibleHint(boolean isVisibleToUser) {
if (getFragmentManager() != null)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment