Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Remove deprecated unsecure file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Badya committed Oct 31, 2017
1 parent 46baca8 commit e432df1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ fun obtainDirectory(path: String): File {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return File(Environment.getExternalStorageDirectory(), path)
} else {
return getInstrumentation().context.getDir(path, Context.MODE_WORLD_READABLE)
return getInstrumentation().context.getDir(path, Context.MODE_PRIVATE)
}
}

0 comments on commit e432df1

Please sign in to comment.