Skip to content

Commit

Permalink
fix: 修复zdc1输入ota地址无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
a2633063 committed Jun 9, 2020
1 parent a59c0ed commit 16fceae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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.zyc.zcontrol"
minSdkVersion 21
targetSdkVersion 28
versionCode 38
versionName "v1.4.0"
versionCode 39
versionName "v1.4.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":38,"versionName":"v1.4.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":39,"versionName":"v1.4.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void debugFWUpdate() {
public void onClick(DialogInterface dialogInterface, int i) {
String uri = et.getText().toString();
//if (uri.length() < 1) return;
String[] ota = uri.split("\r\n");
String[] ota = uri.replace("\r\n","\n").split("\n");

if (ota.length < 2
|| (ota.length >= 2 && (!ota[0].startsWith("http") || !ota[1].startsWith("http")))
Expand Down

0 comments on commit 16fceae

Please sign in to comment.