Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Ear recognition
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Boston University
Ear recognition
Commits
b376108e
Commit
b376108e
authored
Oct 16, 2015
by
Josejulio Martínez Magaña
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX: We had the wrong listener on the ListView.
parent
5ef2e626
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
SelectFollowupActivity.java
...oft/earrecognition/activities/SelectFollowupActivity.java
+4
-11
No files found.
app/src/main/java/com/aluxoft/earrecognition/activities/SelectFollowupActivity.java
View file @
b376108e
...
...
@@ -45,30 +45,23 @@ public class SelectFollowupActivity extends Activity {
ListView
topNListView
=
(
ListView
)
findViewById
(
R
.
id
.
topNListView
);
topNListView
.
setAdapter
(
arrayAdapter
);
topNListView
.
setItemsCanFocus
(
true
);
topNListView
.
setOnItemSelectedListener
(
new
AdapterView
.
OnItemSelectedListener
()
{
topNListView
.
setOnItemClickListener
(
new
AdapterView
.
OnItemClickListener
()
{
@Override
public
void
onItem
Selected
(
AdapterView
<?>
adapterView
,
View
view
,
int
i
,
long
l
)
{
public
void
onItem
Click
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
Intent
intent
=
new
Intent
(
"org.commcare.dalvik.action.CommCareSession"
);
String
sssd
=
""
;
sssd
+=
"COMMAND_ID"
+
" "
+
"m1"
+
" "
+
"CASE_ID"
+
" "
+
"case_id"
+
" "
+
earIdList
.
getTop
().
get
(
i
).
person
.
getCaseId
()
+
" "
+
// "99de08b8-7235-41ba-9dbe-d1e5d70575cf" + " " +
"CASE_ID"
+
" "
+
"case_id"
+
" "
+
earIdList
.
getTop
().
get
(
position
).
person
.
getCaseId
()
+
" "
+
// "99de08b8-7235-41ba-9dbe-d1e5d70575cf" + " " +
"COMMAND_ID"
+
" "
+
"m1-f1"
;
intent
.
putExtra
(
"ccodk_session_request"
,
sssd
);
SelectFollowupActivity
.
this
.
startActivity
(
intent
);
}
@Override
public
void
onNothingSelected
(
AdapterView
<?>
adapterView
)
{
}
});
registerButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment