// Path: MarsImages/MarsImages/src/main/java/gov/nasa/jpl/hi/marsimages/EvernoteMars.java
// public static final EvernoteMars EVERNOTE = new EvernoteMars();
// 
// Path: MarsImages/MarsImages/src/main/java/gov/nasa/jpl/hi/marsimages/MarsImagesApp.java
// public static MarsImagesApp MARS_IMAGES;


import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.powellware.marsimages.R;
import static gov.nasa.jpl.hi.marsimages.EvernoteMars.EVERNOTE;
import static gov.nasa.jpl.hi.marsimages.MarsImagesApp.MARS_IMAGES;
package gov.nasa.jpl.hi.marsimages.ui;





public class ImageViewActivity extends AppCompatActivity {

    private ImageViewPagerFragment imageViewPagerFragment;

    @Override
    public void onCreate(Bundle savedInstanceState) {
//        Utils.enableStrictMode();
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_view);
        int selectedPage = getIntent().getIntExtra(ImageViewPagerFragment.STATE_PAGE_NUMBER, 0);
        imageViewPagerFragment = (ImageViewPagerFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_image_view_pager);
        imageViewPagerFragment.setUpViewPager(selectedPage);
    }

    @Override
    public void onResume() {
        super.onResume();
        long pauseTimeMillis = MARS_IMAGES.getPauseTimestamp();
        ImageLoader.getInstance().resume();
        if (pauseTimeMillis > 0 && System.currentTimeMillis() - pauseTimeMillis > 30 * 60 * 1000)
// Path: MarsImages/MarsImages/src/main/java/gov/nasa/jpl/hi/marsimages/EvernoteMars.java
// public static final EvernoteMars EVERNOTE = new EvernoteMars();
// 
// Path: MarsImages/MarsImages/src/main/java/gov/nasa/jpl/hi/marsimages/MarsImagesApp.java
// public static MarsImagesApp MARS_IMAGES;


// Path: MarsImages/MarsImages/src/main/java/gov/nasa/jpl/hi/marsimages/ui/ImageViewActivity.java
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.powellware.marsimages.R;
import static gov.nasa.jpl.hi.marsimages.EvernoteMars.EVERNOTE;
import static gov.nasa.jpl.hi.marsimages.MarsImagesApp.MARS_IMAGES;

package gov.nasa.jpl.hi.marsimages.ui;





public class ImageViewActivity extends AppCompatActivity {

    private ImageViewPagerFragment imageViewPagerFragment;

    @Override
    public void onCreate(Bundle savedInstanceState) {
//        Utils.enableStrictMode();
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_view);
        int selectedPage = getIntent().getIntExtra(ImageViewPagerFragment.STATE_PAGE_NUMBER, 0);
        imageViewPagerFragment = (ImageViewPagerFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_image_view_pager);
        imageViewPagerFragment.setUpViewPager(selectedPage);
    }

    @Override
    public void onResume() {
        super.onResume();
        long pauseTimeMillis = MARS_IMAGES.getPauseTimestamp();
        ImageLoader.getInstance().resume();
        if (pauseTimeMillis > 0 && System.currentTimeMillis() - pauseTimeMillis > 30 * 60 * 1000)
            EVERNOTE.loadMoreImages(this, true);