Skip to content

Commit

Permalink
Release 4.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Apr 7, 2018
1 parent 9e5a57e commit 0cdef4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {
applicationId "com.cpjd.roblu"
minSdkVersion 19
targetSdkVersion 27
versionCode 61
versionName "4.4.6"
versionCode 62
versionName "4.4.7"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

javaCompileOptions {
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/cpjd/roblu/sync/SyncHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ public void mergeCheckout(RCheckout checkout) {
}
// The team was not found locally, create a new one
else {
Log.d("RBS", "Team was not found, creating a new one.");

team = new RTeam(checkout.getTeam().getName(), checkout.getTeam().getNumber(), checkout.getTeam().getID());
team.setLastEdit(checkout.getTeam().getLastEdit());
team.verify(form);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/cpjd/roblu/sync/qr/QrReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void run() {
new SyncHelper(getApplicationContext(), event, SyncHelper.MODES.QR).mergeCheckout(checkout);

// Flag for upload
checkout.setTeam(new IO(getApplicationContext()).loadTeam(event.getID(), checkout.getTeam().getID())); // reload the team after merge
new IO(getApplicationContext()).savePendingCheckout(checkout);

Notify.notifyMerged(getApplicationContext(), event.getID(), checkout);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/cpjd/roblu/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static boolean hasInternetConnection(Context context) {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return activeNetwork != null &&
activeNetwork.isConnectedOrConnecting() || (cm.getNetworkInfo(ConnectivityManager.TYPE_VPN).isConnectedOrConnecting());
} else return activeNetwork != null && activeNetwork.isConnectedOrConnecting();
} else return activeNetwork != null && activeNetwork.isConnected();
} catch(Exception e) {
return false;
}
Expand Down

0 comments on commit 0cdef4b

Please sign in to comment.