Skip to content

Commit

Permalink
Merge pull request #78 from SUPLA/develop
Browse files Browse the repository at this point in the history
v2.3.10
  • Loading branch information
przemyslawzygmunt authored Jul 1, 2019
2 parents bd59858 + f91489b commit d4bbba2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.supla.android"
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionCode 62
versionName "2.3.9"
versionCode 63
versionName "2.3.10"

sourceSets.main {
jniLibs.srcDir 'src/main/libs'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/supla/android/Trace.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Trace
public static final int ERRORS_WARNINGS_INFO = 3;
public static final int ERRORS_WARNINGS_INFO_DEBUG = 4;

private static final int LOGGING_LEVEL = ERRORS_ONLY; /*ERRORS_WARNINGS_INFO_DEBUG;*/
private static final int LOGGING_LEVEL = /*ERRORS_ONLY;*/ ERRORS_WARNINGS_INFO_DEBUG;

public static void e(String tag, String msg)
{
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/org/supla/android/lib/SuplaOAuthToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public URL getUrl() {
return Url;
}

if (Token == null) {
return null;
}

String[] t = Token.split("\\.");
if (t.length > 1) {
byte [] data = Base64.decode(t[t.length-1], Base64.DEFAULT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void SaveMeasurementItem(SQLiteDatabase db,

IncrementalMeasurementItem citem = newObject(younger_item);

if (older_item.getTimestamp() < citem.getTimestamp() && !citem.isCalculated()) {
if (!citem.isCalculated()) {
citem.Calculate(older_item);
}

Expand Down Expand Up @@ -86,6 +86,7 @@ protected void noRemoteDataAvailable(SQLiteDatabase db) throws JSONException {
if (older_item != null
&& added) {
addIncrementalMeasurement(db, older_item);
older_item = null;
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout-hdpi/activity_status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<TextView
android:id="@+id/status_text"
android:layout_width="match_parent"
android:layout_height="110dp"
android:layout_height="120dp"
android:layout_below="@+id/status_img"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="38dp"
android:layout_marginRight="10dp"
android:gravity="center_vertical|center_horizontal"
android:text="@string/status_connecting"
android:textColor="@android:color/black"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout-xhdpi/activity_status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<TextView
android:id="@+id/status_text"
android:layout_width="match_parent"
android:layout_height="110dp"
android:layout_height="120dp"
android:layout_below="@+id/status_img"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="38dp"
android:layout_marginRight="10dp"
android:gravity="center_vertical|center_horizontal"
android:text="@string/status_connecting"
android:textColor="@android:color/black"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_status.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<TextView
android:id="@+id/status_text"
android:layout_width="match_parent"
android:layout_height="110dp"
android:layout_height="120dp"
android:layout_below="@+id/status_img"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="15dp"
android:layout_marginRight="10dp"
android:gravity="center_vertical|center_horizontal"
android:text="@string/status_connecting"
android:textColor="@android:color/black"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/add_wizard_error.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
android:layout_below="@+id/imageView3"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="50dp"
android:layout_marginRight="10dp"
android:layout_marginTop="70dp"
android:gravity="center_horizontal"
android:textColor="@android:color/white"
android:textSize="15sp" />
Expand Down

0 comments on commit d4bbba2

Please sign in to comment.