Interstitial shows on profile in MediaGallery
@@ -55,6 +55,8 @@ public class ZoomableDraweeView extends DraweeView<GenericDraweeHierarchy>
private GestureDetector mTapGestureDetector;
private boolean mAllowTouchInterceptionWhileZoomed = true;
+ private boolean mIsDialtoneEnabled = false;
+
private final ControllerListener mControllerListener = new BaseControllerListener<Object>() {
@Override
public void onFinalImageSet(
@@ -125,6 +127,10 @@ public class ZoomableDraweeView extends DraweeView<GenericDraweeHierarchy>
mTapGestureDetector = new GestureDetector(getContext(), mTapListenerWrapper);
}
+ public void setIsDialtoneEnabled(boolean isDialtoneEnabled) {
+ mIsDialtoneEnabled = isDialtoneEnabled;
+ }
+
/**
* Gets the original image bounds, in view-absolute coordinates.
*
@@ -293,7 +299,7 @@ public class ZoomableDraweeView extends DraweeView<GenericDraweeHierarchy>
public boolean onTouchEvent(MotionEvent event) {
int a = event.getActionMasked();
FLog.v(getLogTag(), "onTouchEvent: %d, view %x, received", a, this.hashCode());
- if (mTapGestureDetector.onTouchEvent(event)) {
+ if (!mIsDialtoneEnabled && mTapGestureDetector.onTouchEvent(event)) {
FLog.v(
getLogTag(),
"onTouchEvent: %d, view %x, handled by tap gesture detector",
@@ -302,7 +308,7 @@ public class ZoomableDraweeView extends DraweeView<GenericDraweeHierarchy>
return true;
}
- if (mZoomableController.onTouchEvent(event)) {
+ if (!mIsDialtoneEnabled && mZoomableController.onTouchEvent(event)) {
FLog.v(
getLogTag(),
"onTouchEvent: %d, view %x, handled by zoomable controller",
