Skip to content

Commit

Permalink
Merge pull request #93 from SUPLA/develop
Browse files Browse the repository at this point in the history
v2.3.17
  • Loading branch information
przemyslawzygmunt authored Jul 30, 2019
2 parents 8218a2a + d71d125 commit 171d9e5
Show file tree
Hide file tree
Showing 70 changed files with 739 additions and 363 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 70
versionName "2.3.16"
versionCode 71
versionName "2.3.17"

sourceSets.main {
jniLibs.srcDir 'src/main/libs'
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/org/supla/android/AddWizardActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,8 @@ private void bindNetwork() {

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
cm.bindProcessToNetwork(n);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
} else //noinspection ConstantConditions
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
ConnectivityManager.setProcessDefaultNetwork(n);
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/org/supla/android/CfgActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ public void onClick(View v) {

DbHelper DbH = new DbHelper(this);
DbH.deleteUserIcons();
DbH = null;

prefs.setPreferedProtocolVersion();

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/supla/android/ChannelDetailEM.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ public void channelExtendedDataToViews(boolean setIcon) {
chartHelper.setPricePerUnit(em.getPricePerUnit());
SuplaChannelElectricityMeterValue.Summary sum = em.getSummary();

double currentConsumption = 0;
double currentCost = 0;
double currentConsumption;
double currentCost;

DbHelper mDBH = new DbHelper(getContext(), true);

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/supla/android/ChannelDetailIC.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ private void channelExtendedDataToViews(boolean setIcon) {

SuplaChannelImpulseCounterValue ic = cev.getExtendedValue().ImpulseCounterValue;

double currentConsumption = 0;
double currentCost = 0;
double currentConsumption;
double currentCost;

if (mDBH.impulseCounterMeasurementsStartsWithTheCurrentMonth(channel.getChannelId())) {
currentConsumption = ic.getCalculatedValue();
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/org/supla/android/ChannelDetailRS.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ public void run() {
tvPercent.setText("---");
}

withoutDelay = false;
}

}
Expand Down
Loading

0 comments on commit 171d9e5

Please sign in to comment.