|
|
|
@ -5,12 +5,7 @@ import android.content.Context;
|
|
|
|
|
import android.content.SharedPreferences;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
import android.support.design.widget.FloatingActionButton;
|
|
|
|
|
import android.support.design.widget.Snackbar;
|
|
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
|
|
import android.support.v7.widget.Toolbar;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
import agency.tango.materialintroscreen.MaterialIntroActivity;
|
|
|
|
|
import agency.tango.materialintroscreen.MessageButtonBehaviour;
|
|
|
|
@ -23,21 +18,21 @@ public class IntroActivity extends MaterialIntroActivity {
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
addSlide(new SlideFragmentBuilder()
|
|
|
|
|
.backgroundColor(R.color.colorPrimary)
|
|
|
|
|
.buttonsColor(R.color.colorAccent)
|
|
|
|
|
.image(R.drawable.intro_shield)
|
|
|
|
|
.title("Welcome")
|
|
|
|
|
.description("Aegis is a brand new open source(!) authenticator app which generates tokens for your accounts.")
|
|
|
|
|
.build());
|
|
|
|
|
.backgroundColor(R.color.colorPrimary)
|
|
|
|
|
.buttonsColor(R.color.colorAccent)
|
|
|
|
|
.image(R.drawable.intro_shield)
|
|
|
|
|
.title("Welcome")
|
|
|
|
|
.description("Aegis is a brand new open source(!) authenticator app which generates tokens for your accounts.")
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
|
addSlide(new SlideFragmentBuilder()
|
|
|
|
|
.backgroundColor(R.color.colorAccent)
|
|
|
|
|
.buttonsColor(R.color.colorPrimary)
|
|
|
|
|
.neededPermissions(new String[]{Manifest.permission.CAMERA})
|
|
|
|
|
.image(R.drawable.intro_scanner)
|
|
|
|
|
.title("Permissions")
|
|
|
|
|
.description("Aegis needs permission to your camera in order to function properly. This is needed to scan QR codes.")
|
|
|
|
|
.build(),
|
|
|
|
|
.backgroundColor(R.color.colorAccent)
|
|
|
|
|
.buttonsColor(R.color.colorPrimary)
|
|
|
|
|
.neededPermissions(new String[]{Manifest.permission.CAMERA})
|
|
|
|
|
.image(R.drawable.intro_scanner)
|
|
|
|
|
.title("Permissions")
|
|
|
|
|
.description("Aegis needs permission to your camera in order to function properly. This is needed to scan QR codes.")
|
|
|
|
|
.build(),
|
|
|
|
|
new MessageButtonBehaviour(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
@ -52,5 +47,4 @@ public class IntroActivity extends MaterialIntroActivity {
|
|
|
|
|
SharedPreferences prefs = this.getSharedPreferences("me.impy.aegis", Context.MODE_PRIVATE);
|
|
|
|
|
prefs.edit().putBoolean("passedIntro", true).apply();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|