mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
Highlight selected file in the file dialog chooser (could be highlighted MORE).
This commit is contained in:
parent
ac82125966
commit
90638fdd0e
1 changed files with 4 additions and 1 deletions
|
@ -206,6 +206,9 @@ public class FileDialog extends ListActivity {
|
||||||
selectButton.setEnabled(true);
|
selectButton.setEnabled(true);
|
||||||
}
|
}
|
||||||
getDir(startPath);
|
getDir(startPath);
|
||||||
|
|
||||||
|
ListView lv = (ListView) findViewById (android.R.id.list);
|
||||||
|
lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getDir(String dirPath) {
|
private void getDir(String dirPath) {
|
||||||
|
@ -355,7 +358,7 @@ public class FileDialog extends ListActivity {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
selectedFile = file;
|
selectedFile = file;
|
||||||
v.setSelected(true);
|
l.setItemChecked(position, true);
|
||||||
selectButton.setEnabled(true);
|
selectButton.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue