private boolean delayForWifi(){
  boolean delayInstantPicture=(isInstantPicture() && PreferenceManager.instantPictureUploadViaWiFiOnly(mContext));
  boolean delayInstantVideo=(isInstantVideo() && PreferenceManager.instantVideoUploadViaWiFiOnly(mContext));
  return ((delayInstantPicture || delayInstantVideo) && !ConnectivityUtils.isAppConnectedViaUnmeteredWiFi(mContext));
}

private boolean delayForWifi ( ) { boolean delayInstantPicture = ( isInstantPicture ( ) && PreferenceManager . instantPictureUploadViaWiFiOnly ( mContext ) ) ; boolean delayInstantVideo = ( isInstantVideo ( ) && PreferenceManager . instantVideoUploadViaWiFiOnly ( mContext ) ) ; return ( ( delayInstantPicture || delayInstantVideo ) && ! ConnectivityUtils . isAppConnectedViaUnmeteredWiFi ( mContext ) ) ; }
checks origin of current upload and network type to decide if should be delayed , according to current user preferences .
