// Path: app/src/main/java/com/botty/wall/app/PrefManager.java
// public class PrefManager {
// 
//     SharedPreferences pref;
//     SharedPreferences.Editor editor;
//     Context _context;
// 
//     // shared pref mode
//     int PRIVATE_MODE = 0;
// 
//     // Shared preferences file name
//     private static final String PREF_NAME = "com.botty.wall-welcome";
// 
//     private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
// 
//     private static final  String CAN_WRITE_SD = "grant_access";
// 
//     public PrefManager(Context context) {
//         this._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);
//     }
// 
//     public void setCanWriteSd(boolean canWriteSd){
//         editor.putBoolean(CAN_WRITE_SD, canWriteSd);
//         editor.commit();
//     }
// 
//     public boolean canWriteSD(){
//         return pref.getBoolean(CAN_WRITE_SD,false);
//     }
// 
// }


import android.Manifest;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.widget.Toast;
import com.botty.wall.R;
import com.botty.wall.app.PrefManager;
import java.io.File;
package com.botty.wall.fragment;




/**
 * Created by BottyIvan on 06/08/16.
 */
public class SettingsFragment extends PreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener {

    public static final String NIGHTMODE = "nightmode";
    public static final String TWO_ROW = "two_row";
    public static final String SWIPE_ACTIVITY_WALL = "swipe_ui_wall_act";
    public static final String DIRECTORY_NAME = "directory";

    public static final String VERSION = "version";

    final private int REQUEST_CODE_ASK_PERMISSIONS = 123;

// Path: app/src/main/java/com/botty/wall/app/PrefManager.java
// public class PrefManager {
// 
//     SharedPreferences pref;
//     SharedPreferences.Editor editor;
//     Context _context;
// 
//     // shared pref mode
//     int PRIVATE_MODE = 0;
// 
//     // Shared preferences file name
//     private static final String PREF_NAME = "com.botty.wall-welcome";
// 
//     private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
// 
//     private static final  String CAN_WRITE_SD = "grant_access";
// 
//     public PrefManager(Context context) {
//         this._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);
//     }
// 
//     public void setCanWriteSd(boolean canWriteSd){
//         editor.putBoolean(CAN_WRITE_SD, canWriteSd);
//         editor.commit();
//     }
// 
//     public boolean canWriteSD(){
//         return pref.getBoolean(CAN_WRITE_SD,false);
//     }
// 
// }


// Path: app/src/main/java/com/botty/wall/fragment/SettingsFragment.java
import android.Manifest;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.widget.Toast;
import com.botty.wall.R;
import com.botty.wall.app.PrefManager;
import java.io.File;

package com.botty.wall.fragment;




/**
 * Created by BottyIvan on 06/08/16.
 */
public class SettingsFragment extends PreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener {

    public static final String NIGHTMODE = "nightmode";
    public static final String TWO_ROW = "two_row";
    public static final String SWIPE_ACTIVITY_WALL = "swipe_ui_wall_act";
    public static final String DIRECTORY_NAME = "directory";

    public static final String VERSION = "version";

    final private int REQUEST_CODE_ASK_PERMISSIONS = 123;

    private PrefManager prefManager;