Skip to content

Commit

Permalink
Fix logger initialization error in unit tests due to Environment.getE…
Browse files Browse the repository at this point in the history
…xternalStorageState() returning null (#204)
  • Loading branch information
victorkifer authored and tony19 committed Sep 20, 2019
1 parent 8c6c259 commit 558034b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ private static ContextWrapper getContext() {
public String getMountedExternalStorageDirectoryPath() {
String path = null;
String state = Environment.getExternalStorageState();
if (state.equals(Environment.MEDIA_MOUNTED) ||
state.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) {
if (Environment.MEDIA_MOUNTED.equals(state) ||
Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
path = absPath(Environment.getExternalStorageDirectory());
}
return path;
Expand Down

0 comments on commit 558034b

Please sign in to comment.