diff --git a/.idea/misc.xml b/.idea/misc.xml index 9fdea7e..37a7509 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/app/build.gradle b/app/build.gradle index 0502e96..e25addb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "com.alxgnon.postwriter" minSdkVersion 26 targetSdkVersion 28 - versionCode 1 - versionName "1.0" + versionCode 2 + versionName "1.1" } buildTypes { release { diff --git a/app/src/main/java/com/alxgnon/postwriter/MainActivity.java b/app/src/main/java/com/alxgnon/postwriter/MainActivity.java index c10af37..6534613 100644 --- a/app/src/main/java/com/alxgnon/postwriter/MainActivity.java +++ b/app/src/main/java/com/alxgnon/postwriter/MainActivity.java @@ -12,7 +12,7 @@ public class MainActivity extends PostMemory { @Override public View getContainer() { - return findViewById(R.id.container); + return findViewById(android.R.id.content); } @Override diff --git a/app/src/main/java/com/alxgnon/postwriter/PostFilesystem.java b/app/src/main/java/com/alxgnon/postwriter/PostFilesystem.java index 8017f96..7110e7e 100644 --- a/app/src/main/java/com/alxgnon/postwriter/PostFilesystem.java +++ b/app/src/main/java/com/alxgnon/postwriter/PostFilesystem.java @@ -63,10 +63,11 @@ private static void tryClose(Closeable buffer) { } } + @SuppressWarnings("ResultOfMethodCallIgnored") private static File getWorkingDirectory() { - return new File( - Environment.getExternalStoragePublicDirectory( - Environment.DIRECTORY_DOCUMENTS), - WORKING_DIRECTORY); + File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS); + file = new File(file, WORKING_DIRECTORY); + file.mkdirs(); + return file; } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 8ba2ca5..ff507e7 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,7 +1,6 @@ Post Writer Write - 1 - 1.0 + 2 + 1.1