Skip to content

Commit

Permalink
Version 1.1 (Crashfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgnon committed May 31, 2019
1 parent 75eccb8 commit 469710e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/alxgnon/postwriter/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/com/alxgnon/postwriter/PostFilesystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
1 change: 0 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
tools:context=".MainActivity">

<ScrollView
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">Post Writer</string>
<string name="placeholder">Write</string>
<string name="versionCode">1</string>
<string name="versionName">1.0</string>
<string name="versionCode">2</string>
<string name="versionName">1.1</string>
</resources>

0 comments on commit 469710e

Please sign in to comment.