Skip to content

Commit

Permalink
Fixed a small file compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Mar 6, 2018
1 parent dbcd284 commit 16edfce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
applicationId "com.cpjd.roblu"
minSdkVersion 19
targetSdkVersion 27
versionCode 49
versionCode 50
versionName "4.3.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
7 changes: 6 additions & 1 deletion app/src/main/java/com/cpjd/roblu/io/IO.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ public RSettings loadSettings() {
* @return RSyncSettings object instance
*/
public RSyncSettings loadCloudSettings() {
return (RSyncSettings) deserializeObject(new File(context.getFilesDir(), PREFIX+File.separator+"cloudSettings.ser"));
RSyncSettings cloudSettings = (RSyncSettings) deserializeObject(new File(context.getFilesDir(), PREFIX+File.separator+"cloudSettings.ser"));
if(cloudSettings == null) {
cloudSettings = new RSyncSettings();
saveCloudSettings(cloudSettings);
}
return cloudSettings;
}

/**
Expand Down

0 comments on commit 16edfce

Please sign in to comment.