fixed some bugs
added rate control to the changecolor event (much smoother now) extraced some more string from the code, more is to come
This commit is contained in:
@@ -356,14 +356,20 @@ public class AddStripeDialog extends DialogFragment implements DialogInterface.O
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
ColorApplication.getInstance().onResume();
|
||||
if (daemonArrayAdapter != null) {
|
||||
daemonArrayAdapter.clear();
|
||||
daemonArrayAdapter.addAll(ColorApplication.getInstance().getDaemons());
|
||||
}
|
||||
|
||||
if (controllerArrayAdapter != null && mDaemonSelected) {
|
||||
refreshController((LedDDaemon) daemonSpinner.getSelectedItem());
|
||||
}
|
||||
getActivity().runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (daemonArrayAdapter != null) {
|
||||
daemonArrayAdapter.clear();
|
||||
daemonArrayAdapter.addAll(ColorApplication.getInstance().getDaemons());
|
||||
}
|
||||
|
||||
if (controllerArrayAdapter != null && mDaemonSelected) {
|
||||
refreshController((LedDDaemon) daemonSpinner.getSelectedItem());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void testChannel(EditText text, ImageButton button) {
|
||||
|
Reference in New Issue
Block a user