private void onSubtitleDownloadSuccess(){
  if (contextReference.get() == null)   return;
  if (listenerReference.get() == null)   return;
  Context context=contextReference.get();
  ISubtitleDownloaderListener listener=listenerReference.get();
  try {
    File subtitleFile=getDownloadedSubtitleFile(context,media,subtitleLanguage);
    SubtitleParseTask task=new SubtitleParseTask(subtitleLanguage,listener);
    task.execute(subtitleFile);
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
    listener.onSubtitleDownloadCompleted(false,null);
  }
}

private void onSubtitleDownloadSuccess ( ) { if ( contextReference . get ( ) == null ) return ; if ( listenerReference . get ( ) == null ) return ; Context context = contextReference . get ( ) ; ISubtitleDownloaderListener listener = listenerReference . get ( ) ; try { File subtitleFile = getDownloadedSubtitleFile ( context , media , subtitleLanguage ) ; SubtitleParseTask task = new SubtitleParseTask ( subtitleLanguage , listener ) ; task . execute ( subtitleFile ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; listener . onSubtitleDownloadCompleted ( false , null ) ; } }
invoked when subtitle download finished successfully .
