mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-12 18:17:28 -04:00
adding some checks to Kitkat SD card permission handling
This commit is contained in:
@@ -87,4 +87,12 @@ public class Config {
|
||||
public void setLastFlashlightState(boolean enabled) {
|
||||
mPrefs.edit().putBoolean(Constants.LAST_FLASHLIGHT_STATE, enabled).apply();
|
||||
}
|
||||
|
||||
public String getTreeUri() {
|
||||
return mPrefs.getString(Constants.TREE_URI, "");
|
||||
}
|
||||
|
||||
public void setTreeUri(String uri) {
|
||||
mPrefs.edit().putString(Constants.TREE_URI, uri).apply();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@ public class Constants {
|
||||
public static final int ORIENT_LANDSCAPE_LEFT = 1;
|
||||
public static final int ORIENT_LANDSCAPE_RIGHT = 2;
|
||||
|
||||
public static final String TREE_URI = "tree_uri";
|
||||
|
||||
// shared preferences
|
||||
public static final String PREFS_KEY = "Camera";
|
||||
public static final String IS_FIRST_RUN = "is_first_run";
|
||||
|
||||
Reference in New Issue
Block a user