Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] fix playground app crash while url query is null (#1847)
Browse files Browse the repository at this point in the history
* [Android] replace IWXDebugProxy as WXSDKInstance class
  • Loading branch information
erha19 authored and YorkShen committed Nov 29, 2018
1 parent 6c335f7 commit 374dc3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/playground/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.alibaba.weex"
minSdkVersion project.minSdkVersion
targetSdkVersion project.targetSdkVersion
versionCode 17
versionName "0.19.0"
versionCode 20
versionName "0.19.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
ndk{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private void startHotRefresh() {
URL url = new URL(mUri.toString());
String host = url.getHost();
String query = url.getQuery();
String wsport = getUrlParam("wsport", query);
String wsport = TextUtils.isEmpty(query)? "8082" : getUrlParam("wsport", query);
String wsUrl = "ws://" + host + ":" + (wsport.equals("") ? "8082" : wsport) ;
mWXHandler.obtainMessage(Constants.HOT_REFRESH_CONNECT, 0, 0, wsUrl).sendToTarget();
} catch (MalformedURLException e) {
Expand Down

0 comments on commit 374dc3b

Please sign in to comment.