use of dev.sagar.smsblocker.ux.adapters.VPIntroAdapter in project SMSBlocker by sagarpawardev.
the class IntroActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_intro);
loadingViewHolder = findViewById(R.id.loading_view_holder);
prefs = getSharedPreferences("my_prefs", Context.MODE_PRIVATE);
boolean introShown = prefs.getBoolean(KEY_DONE_FLAG, false);
if (introShown) {
// finish() included in this
startHomeActivity();
}
convUtil = new ConversationUtil(this, this);
/*btnDefault = (Button) findViewById(R.id.btn_default);
btnDefault.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
permUtil.askToMakeAppDefault(IntroActivity.this);
}
});*/
pager = (ViewPager) findViewById(R.id.vp_holder);
VPIntroAdapter cadapter = new VPIntroAdapter(this);
pager.setAdapter(cadapter);
btnNext = (Button) findViewById(R.id.btn_next);
// btnSkip = (Button) findViewById(R.id.btn_skip);
btnNext.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
moveToNext();
}
});
/*btnNext.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
moveToNext();
}
});*/
}
Aggregations