Fixed a warning

Fixed refresh after rotation
This commit is contained in:
Ziver Koc 2014-08-06 16:06:43 +02:00
parent ce7f772d7e
commit 4e692db48f

View file

@ -46,7 +46,7 @@ public class BehaviourListAdapter extends StableArrayAdapter<UeBehaviour>{
// Setting all values in listview
title.setText(behaviour.getName());
description.setText(behaviour.toString());
description.setText(""+behaviour);
if(editable)
draggable.setVisibility(View.VISIBLE);
@ -58,11 +58,13 @@ public class BehaviourListAdapter extends StableArrayAdapter<UeBehaviour>{
active.setVisibility(View.VISIBLE);
progress.setVisibility(View.VISIBLE);
warning.setVisibility(View.INVISIBLE);
progress.setMax(100);
}
});
}
public void progressChanged(final float p) {
progress.setMax(100);
if(active.getVisibility() != View.VISIBLE)
executionStarted();
progress.setProgress((int) (p * 100));
}
public void executionStopped() {