Skip to content

Commit

Permalink
1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
meefik committed Jun 21, 2014
1 parent d6840ed commit 6c14223
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ru/meefik/linuxdeploy/PrefStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public static void get(Context c) {
prefEditor.putString("installdir", ENV_DIR);

BUILTIN_SHELL = sp.getBoolean("builtinshell", c.getString(R.string.builtinshell).equals("true") ? true : false);

SYMLINK = sp.getBoolean("symlink", c.getString(R.string.symlink)
.equals("true") ? true : false);
CURRENT_PROFILE = sp.getString("profile", null);
Expand All @@ -135,8 +134,11 @@ public static void get(Context c) {
c.getString(R.string.logs).equals("true") ? true : false);
LOG_FILE = sp.getString("logfile", extStore.getAbsolutePath()
+ "/linuxdeploy.log");

prefEditor.commit();

sp = c.getSharedPreferences(CURRENT_PROFILE, Context.MODE_PRIVATE);
prefEditor = sp.edit();

IMG_TARGET = sp.getString("diskimage", extStore.getAbsolutePath()
+ "/linux.img");
Expand Down Expand Up @@ -204,6 +206,8 @@ public static void get(Context c) {
FB_INPUT = sp.getString("fbinput", c.getString(R.string.fbinput));
FB_ARGS = sp.getString("fbargs", c.getString(R.string.fbargs));
FB_FREEZE = sp.getString("fbfreeze", c.getString(R.string.fbfreeze));

prefEditor.commit();

try {
VERSION = c.getPackageManager().getPackageInfo(c.getPackageName(),
Expand All @@ -214,8 +218,6 @@ public static void get(Context c) {
} catch (NameNotFoundException e) {
e.printStackTrace();
}

prefEditor.commit();
}

public static int getWidth(Context mContext) {
Expand Down

0 comments on commit 6c14223

Please sign in to comment.