Fixed a warning
Fixed refresh after rotation
This commit is contained in:
parent
ce7f772d7e
commit
4e692db48f
1 changed files with 4 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue