fix: connect to dev plugin with wrong host

This commit is contained in:
hyb1996
2017-12-30 17:10:58 +08:00
parent 6d9fda6862
commit 123f86aa27
2 changed files with 3 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ android {
applicationId "com.stardust.scriptdroid" applicationId "com.stardust.scriptdroid"
minSdkVersion 17 minSdkVersion 17
targetSdkVersion 23 targetSdkVersion 23
versionCode 238 versionCode 239
versionName "3.0.0 Alpha38" versionName "3.0.0 Alpha39"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true multiDexEnabled true
ndk { ndk {

View File

@@ -230,7 +230,7 @@ public class DrawerFragment extends android.support.v4.app.Fragment {
.title(R.string.text_server_address) .title(R.string.text_server_address)
.input("", host, (dialog, input) -> { .input("", host, (dialog, input) -> {
Pref.saveServerAddress(input.toString()); Pref.saveServerAddress(input.toString());
DevPluginService.getInstance().connectToServer(host); DevPluginService.getInstance().connectToServer(input.toString());
}) })
.neutralText(R.string.text_help) .neutralText(R.string.text_help)
.onNeutral((dialog, which) -> { .onNeutral((dialog, which) -> {