switched to json-rpc (ref LedD d5f403d5573d13e6b8f3113a1c62a096ea721f19)
fixed duplicate connections were made when adding a daemon
This commit is contained in:
@@ -258,7 +258,6 @@ public class AddStripeDialog extends DialogFragment implements DialogInterface.O
|
||||
|
||||
LedDHelper helper = ColorApplication.getInstance().getHelperForDaemon((LedDDaemon) daemonSpinner.getSelectedItem());
|
||||
|
||||
|
||||
if (helper != null) {
|
||||
helper.addStripe(stripe, new AddStripeCallback() {
|
||||
@Override
|
||||
@@ -275,6 +274,11 @@ public class AddStripeDialog extends DialogFragment implements DialogInterface.O
|
||||
dismiss();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAddFailed(int code, String msg) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConnectionFailed(final String message) {
|
||||
getActivity().runOnUiThread(new Runnable() {
|
||||
@@ -415,7 +419,7 @@ public class AddStripeDialog extends DialogFragment implements DialogInterface.O
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onGetFailed(String message) {
|
||||
public void onGetFailed(int code, String message) {
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user