// Path: app/src/main/java/com/creativetrends/app/simplicity/ui/Cardbar.java
// public class Cardbar {
// 
//     public static @CheckResult
//         Toast snackBar(Context context, CharSequence message_to_show, boolean duration) {
//         @SuppressLint("InflateParams")
//         View view = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.custom_snackbar, null);
//         AppCompatTextView message = view.findViewById(R.id.message);
//         message.setText(message_to_show);
//         Toast toast = new Toast(context);
//         toast.setView(view);
//         toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.BOTTOM, 0, 0);
//         if (duration) {
//             toast.setDuration(Toast.LENGTH_LONG);
//         } else {
//             toast.setDuration(Toast.LENGTH_SHORT);
//         }
//         return toast;
//     }
// 
// }
// 
// Path: app/src/main/java/com/creativetrends/app/simplicity/utils/PrefManager.java
// public class PrefManager {
//     private SharedPreferences pref;
//     private SharedPreferences.Editor editor;
// 
//     // Shared preferences file name
//     private static final String PREF_NAME = "simplicity-welcome";
// 
//     private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
// 
//     @SuppressLint("CommitPrefEdits")
//     public PrefManager(Context context) {
//         int PRIVATE_MODE = 0;
//         pref = context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
//         editor = pref.edit();
// 
//     }
// 
//     public void setFirstTimeLaunch(boolean isFirstTime) {
//         editor.putBoolean(IS_FIRST_TIME_LAUNCH, false);
//         editor.commit();
//     }
// 
//     public boolean isFirstTimeLaunch() {
// 
//         return pref.getBoolean(IS_FIRST_TIME_LAUNCH , true);
//     }
// 
// }


import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import com.creativetrends.app.simplicity.ui.Cardbar;
import com.creativetrends.app.simplicity.utils.PrefManager;
import com.creativetrends.simplicity.app.R;
import com.google.android.material.button.MaterialButton;
import java.io.File;
import java.util.Calendar;
package com.creativetrends.app.simplicity.activities;





public class WelcomeActivity extends AppCompatActivity implements View.OnClickListener {
    private PrefManager prefManager;

    private static final int REQUEST_STORAGE = 300;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        prefManager = new PrefManager(this);
        MaterialButton appCompatButton = findViewById(R.id.wel_button);
        AppCompatTextView termsTextView = findViewById(R.id.wel_term);
        AppCompatTextView policyTextView = findViewById(R.id.wel_pri);
        appCompatButton.setOnClickListener(this);
        termsTextView.setOnClickListener(this);
        policyTextView.setOnClickListener(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
            getWindow().setNavigationBarColor(ContextCompat.getColor(this, R.color.white));
        }else{
            getWindow().setNavigationBarColor(ContextCompat.getColor(this, R.color.black));
        }
        getWindow().setStatusBarColor(ContextCompat.getColor(this, R.color.black));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.wel_button:
                if(!hasStoragePermission(this)){
// Path: app/src/main/java/com/creativetrends/app/simplicity/ui/Cardbar.java
// public class Cardbar {
// 
//     public static @CheckResult
//         Toast snackBar(Context context, CharSequence message_to_show, boolean duration) {
//         @SuppressLint("InflateParams")
//         View view = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.custom_snackbar, null);
//         AppCompatTextView message = view.findViewById(R.id.message);
//         message.setText(message_to_show);
//         Toast toast = new Toast(context);
//         toast.setView(view);
//         toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.BOTTOM, 0, 0);
//         if (duration) {
//             toast.setDuration(Toast.LENGTH_LONG);
//         } else {
//             toast.setDuration(Toast.LENGTH_SHORT);
//         }
//         return toast;
//     }
// 
// }
// 
// Path: app/src/main/java/com/creativetrends/app/simplicity/utils/PrefManager.java
// public class PrefManager {
//     private SharedPreferences pref;
//     private SharedPreferences.Editor editor;
// 
//     // Shared preferences file name
//     private static final String PREF_NAME = "simplicity-welcome";
// 
//     private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
// 
//     @SuppressLint("CommitPrefEdits")
//     public PrefManager(Context context) {
//         int PRIVATE_MODE = 0;
//         pref = context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
//         editor = pref.edit();
// 
//     }
// 
//     public void setFirstTimeLaunch(boolean isFirstTime) {
//         editor.putBoolean(IS_FIRST_TIME_LAUNCH, false);
//         editor.commit();
//     }
// 
//     public boolean isFirstTimeLaunch() {
// 
//         return pref.getBoolean(IS_FIRST_TIME_LAUNCH , true);
//     }
// 
// }


// Path: app/src/main/java/com/creativetrends/app/simplicity/activities/WelcomeActivity.java
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import com.creativetrends.app.simplicity.ui.Cardbar;
import com.creativetrends.app.simplicity.utils.PrefManager;
import com.creativetrends.simplicity.app.R;
import com.google.android.material.button.MaterialButton;
import java.io.File;
import java.util.Calendar;

package com.creativetrends.app.simplicity.activities;





public class WelcomeActivity extends AppCompatActivity implements View.OnClickListener {
    private PrefManager prefManager;

    private static final int REQUEST_STORAGE = 300;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        prefManager = new PrefManager(this);
        MaterialButton appCompatButton = findViewById(R.id.wel_button);
        AppCompatTextView termsTextView = findViewById(R.id.wel_term);
        AppCompatTextView policyTextView = findViewById(R.id.wel_pri);
        appCompatButton.setOnClickListener(this);
        termsTextView.setOnClickListener(this);
        policyTextView.setOnClickListener(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
            getWindow().setNavigationBarColor(ContextCompat.getColor(this, R.color.white));
        }else{
            getWindow().setNavigationBarColor(ContextCompat.getColor(this, R.color.black));
        }
        getWindow().setStatusBarColor(ContextCompat.getColor(this, R.color.black));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.wel_button:
                if(!hasStoragePermission(this)){
                    requestStoragePermission(this);