Update DigFragment.java

Got Cory's code copied in this.