// Path: app/src/main/java/org/apache/taverna/mobile/ui/base/BaseActivity.java
// public class BaseActivity extends AppCompatActivity {
// 
//     private ActivityComponent activityComponent;
// 
// 
//     public ActivityComponent getActivityComponent() {
//         if (activityComponent == null) {
//             activityComponent = DaggerActivityComponent.builder()
//                     .activityModule(new ActivityModule(this))
//                     .applicationComponent(TavernaApplication.get(this).getComponent())
//                     .build();
//         }
//         return activityComponent;
//     }
// }


import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.Request;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SizeReadyCallback;
import com.bumptech.glide.request.target.Target;
import org.apache.taverna.mobile.R;
import org.apache.taverna.mobile.ui.base.BaseActivity;
import org.apache.taverna.mobile.utils.ConnectionInfo;
import javax.inject.Inject;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import uk.co.senab.photoview.PhotoViewAttacher;
    ImageView close;

    PhotoViewAttacher mAttacher;

    private String svgURI;

    private String jpgURI;

    public static ImageZoomFragment newInstance(String jpgURI, String svgURI) {
        Bundle args = new Bundle();
        args.putString(JPG_URI, jpgURI);
        args.putString(SVG_URI, svgURI);
        ImageZoomFragment fragment = new ImageZoomFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        svgURI = getArguments().getString(SVG_URI);
        jpgURI = getArguments().getString(JPG_URI);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle
            savedInstanceState) {

        View rootView = inflater.inflate(R.layout.fragment_image_zoom, container, false);
// Path: app/src/main/java/org/apache/taverna/mobile/ui/base/BaseActivity.java
// public class BaseActivity extends AppCompatActivity {
// 
//     private ActivityComponent activityComponent;
// 
// 
//     public ActivityComponent getActivityComponent() {
//         if (activityComponent == null) {
//             activityComponent = DaggerActivityComponent.builder()
//                     .activityModule(new ActivityModule(this))
//                     .applicationComponent(TavernaApplication.get(this).getComponent())
//                     .build();
//         }
//         return activityComponent;
//     }
// }


// Path: app/src/main/java/org/apache/taverna/mobile/ui/imagezoom/ImageZoomFragment.java
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.Request;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SizeReadyCallback;
import com.bumptech.glide.request.target.Target;
import org.apache.taverna.mobile.R;
import org.apache.taverna.mobile.ui.base.BaseActivity;
import org.apache.taverna.mobile.utils.ConnectionInfo;
import javax.inject.Inject;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import uk.co.senab.photoview.PhotoViewAttacher;

    ImageView close;

    PhotoViewAttacher mAttacher;

    private String svgURI;

    private String jpgURI;

    public static ImageZoomFragment newInstance(String jpgURI, String svgURI) {
        Bundle args = new Bundle();
        args.putString(JPG_URI, jpgURI);
        args.putString(SVG_URI, svgURI);
        ImageZoomFragment fragment = new ImageZoomFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        svgURI = getArguments().getString(SVG_URI);
        jpgURI = getArguments().getString(JPG_URI);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle
            savedInstanceState) {

        View rootView = inflater.inflate(R.layout.fragment_image_zoom, container, false);
        ((BaseActivity) getActivity()).getActivityComponent().inject(this);