Revision 7018009a app/src/info/guardianproject/notepadbot/Settings.java

View differences:

app/src/info/guardianproject/notepadbot/Settings.java
9 9
import android.os.Bundle;
10 10
import android.preference.Preference;
11 11
import android.preference.PreferenceFragment;
12
import android.preference.PreferenceManager;
12 13
import android.support.v4.app.NavUtils;
13 14

  
14 15
import com.actionbarsherlock.app.SherlockPreferenceActivity;
......
77 78
						
78 79
						return true;
79 80
					}
80
		};
81
	};
82
	
83
	public static final boolean getNoteLinesOption(Context context) {
84
		boolean defValue = context.getResources().getBoolean(R.bool.notecipher_uselines_default);
85
        return PreferenceManager.getDefaultSharedPreferences(context).getBoolean(NConstants.SHARED_PREFS_NOTELINES, defValue);
86
	}
81 87
}

Also available in: Unified diff