// Path: app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/helpers/PrefManager.java
// public class PrefManager {
//     public static final String PREF_SAVE_REAL_IMAGE_TO_HISTORY = "pref_save_real_image_to_history";
// 
//     private final SharedPreferences pref;
//     private final SharedPreferences.Editor editor;
// 
//     // shared pref mode
//     private final int PRIVATE_MODE = 0;
// 
//     // Shared preferences file name
//     private static final String PREF_NAME = "privacy_friendly_apps";
// 
//     private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
// 
//     public PrefManager(Context context) {
//         pref = context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
//         editor = pref.edit();
//     }
// 
//     public void setFirstTimeLaunch(boolean isFirstTime) {
//         editor.putBoolean(IS_FIRST_TIME_LAUNCH, isFirstTime);
//         editor.commit();
//     }
// 
//     public boolean isFirstTimeLaunch() {
//         return pref.getBoolean(IS_FIRST_TIME_LAUNCH, true);
//     }
// 
// }


import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.secuso.privacyfriendlycodescanner.qrscanner.helpers.PrefManager;
package com.secuso.privacyfriendlycodescanner.qrscanner.ui.activities;



/**
 * @author Karola Marky
 * @version 20161022
 */

public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

// Path: app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/helpers/PrefManager.java
// public class PrefManager {
//     public static final String PREF_SAVE_REAL_IMAGE_TO_HISTORY = "pref_save_real_image_to_history";
// 
//     private final SharedPreferences pref;
//     private final SharedPreferences.Editor editor;
// 
//     // shared pref mode
//     private final int PRIVATE_MODE = 0;
// 
//     // Shared preferences file name
//     private static final String PREF_NAME = "privacy_friendly_apps";
// 
//     private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
// 
//     public PrefManager(Context context) {
//         pref = context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
//         editor = pref.edit();
//     }
// 
//     public void setFirstTimeLaunch(boolean isFirstTime) {
//         editor.putBoolean(IS_FIRST_TIME_LAUNCH, isFirstTime);
//         editor.commit();
//     }
// 
//     public boolean isFirstTimeLaunch() {
//         return pref.getBoolean(IS_FIRST_TIME_LAUNCH, true);
//     }
// 
// }


// Path: app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/activities/SplashActivity.java
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.secuso.privacyfriendlycodescanner.qrscanner.helpers.PrefManager;

package com.secuso.privacyfriendlycodescanner.qrscanner.ui.activities;



/**
 * @author Karola Marky
 * @version 20161022
 */

public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        PrefManager firstStartPref = new PrefManager(this);