package com.bottle.hp.album.gallery; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.bottle.hp.album.R$id; import com.bottle.hp.album.R$layout; import com.bottle.hp.album.photoview.HackyViewPager; import java.util.ArrayList; import java.util.List; /* loaded from: classes.dex */ public class GalleryPreviewActivity extends AppCompatActivity { private HackyViewPager a; private AdapterSamplePager b; private List c; public static void a(Activity activity, ArrayList arrayList, int i) { Intent intent = new Intent(activity, (Class) GalleryPreviewActivity.class); intent.putExtra("data", arrayList); intent.putExtra("index", i); activity.startActivity(intent); } @Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.core.app.ComponentActivity, android.app.Activity protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R$layout.activity_gallery_preview); this.a = (HackyViewPager) findViewById(R$id.hackyViewPager); this.c = (List) getIntent().getSerializableExtra("data"); this.b = new AdapterSamplePager(this, this.c); this.a.setAdapter(this.b); this.a.setCurrentItem(getIntent().getIntExtra("index", 0)); } @Override // androidx.fragment.app.FragmentActivity, android.app.Activity protected void onPause() { super.onPause(); } }