Skip to content

Commit

Permalink
Check if the current instance of SubsamplingScaleImageView has an ima…
Browse files Browse the repository at this point in the history
…ge set.
  • Loading branch information
= committed Nov 5, 2016
1 parent e221de0 commit 39bb309
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,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 39bb309

Please sign in to comment.