Skip to content

Instantly share code, notes, and snippets.

@ih8legal
Created July 18, 2016 22:36
Show Gist options
  • Save ih8legal/906d82b052b80afeeadc4b7c50f7717e to your computer and use it in GitHub Desktop.
Save ih8legal/906d82b052b80afeeadc4b7c50f7717e to your computer and use it in GitHub Desktop.
for reddit eyes only
package com.example.android.summonthefirelord;
import org.jsoup.nodes.Element;
/**
* Created by Timothy on 7/15/2016.
*/
public class Checker {
public boolean exists(Element element, String soundID){
if (element != null && !element.select(soundID).first().attr("src").isEmpty()) {
return true;
}else{
return false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment