don't show onboarding every time

This commit is contained in:
m2049r 2020-09-16 19:59:58 +02:00
parent 05fc654f3a
commit c060a2ab88
No known key found for this signature in database
GPG Key ID: 4386E69AF260078D
1 changed files with 1 additions and 3 deletions

View File

@ -24,13 +24,11 @@ import android.support.v7.app.AppCompatActivity;
import com.m2049r.xmrwallet.onboarding.OnBoardingActivity;
import com.m2049r.xmrwallet.onboarding.OnBoardingManager;
import timber.log.Timber;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (OnBoardingManager.shouldShowOnBoarding(getApplicationContext()) || BuildConfig.DEBUG) {
if (OnBoardingManager.shouldShowOnBoarding(getApplicationContext())) {
startActivity(new Intent(this, OnBoardingActivity.class));
} else {
startActivity(new Intent(this, LoginActivity.class));