Commit ebe09b0e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avoid crash on context void

parent 3b8bc023
......@@ -118,6 +118,10 @@ public class AudioPlayerActivity extends Activity implements IAudioPlayer {
}
public static void start(Context context, Boolean dontParse) {
if (context == null) {
Log.e(TAG, "No context when starting AudioPlayerActivity");
return;
}
Intent intent = new Intent(context, AudioPlayerActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
if (dontParse)
......
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