Skip to content

Commit

Permalink
Minor fixes to state saving #114
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamingHawk committed Jan 18, 2019
1 parent df58fd5 commit cbf6a70
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -29,7 +29,7 @@ public abstract class BaseActivity extends AppCompatActivity {
List<FileItem> fileList = new ArrayList<>();
private Dialog changeLog;

static final String STATE_PATH = "path";
static final String STATE_PATH = "pathState";

private static final String CHANGE_LOG_CSS = "body { padding: 0.8em; } " +
"h1 { margin-left: 0px; font-size: 1.2em; } " +
Expand All @@ -46,7 +46,7 @@ protected void onCreate(Bundle savedInstanceState) {
currentPath = savedInstanceState.getString(STATE_PATH);
} else {
// Probably initialize members with default values for a new instance
currentPath = "NewPath";
currentPath = Environment.getExternalStorageDirectory().getAbsolutePath();
}
}

Expand Down

0 comments on commit cbf6a70

Please sign in to comment.