Skip to content

Commit

Permalink
fix storage permission > api31 & some
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerson2000 committed Dec 30, 2023
1 parent 9f67a9b commit 7934a39
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 98 deletions.
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static boolean saveFiles(Context context, String data,String projectName, String
if (Environment.MEDIA_MOUNTED.equals(state)) {
File dir = Environment.getExternalStorageDirectory();

File base = new File(dir, "UmlClassEditor");
File base = new File(dir, "UML Class Editor");
if (!base.exists()) {
if (!base.mkdirs()) {
Log.e("TEST", "Failed to create directory");
Expand Down
Loading

0 comments on commit 7934a39

Please sign in to comment.