Skip to content

Commit

Permalink
Merge pull request #262 from laurencedawson/master
Browse files Browse the repository at this point in the history
Check if the current instance of SubsamplingScaleImageView has an image set
  • Loading branch information
davemorrissey authored Nov 5, 2016
2 parents 4505d63 + 39bb309 commit 4fedb14
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2996,6 +2996,14 @@ public static class DefaultOnStateChangedListener implements OnStateChangedListe
@Override public void onCenterChanged(PointF newCenter, int origin) { }
@Override public void onScaleChanged(float newScale, int origin) { }

}

/**
* Check if the current instance of SubsamplingScaleImageView has an image set
* @return If an image is currently set
*/
public boolean hasImageSet(){
return uri!=null || bitmap!=null;
}

}

0 comments on commit 4fedb14

Please sign in to comment.