Merge pull request 'refresh_list_after_on_item_click' (#28) from refresh_list_after_on_item_click into develop
Reviewed-on: #28
This commit is contained in:
commit
0ba536e323
@ -97,6 +97,10 @@ public class AlertGridViewAdapter extends BaseAdapter
|
||||
switch(acknowledged.get(position) ? 1 : 0)
|
||||
{
|
||||
case 1:
|
||||
ViewGroup.LayoutParams params = convertView.getLayoutParams();
|
||||
if (params != null) {
|
||||
params.height = 0;
|
||||
}
|
||||
view.imageViewAlert.setImageResource(R.drawable.alert_off);
|
||||
//view.layoutAlarm.setBackgroundColor(0xffffffff);
|
||||
break;
|
||||
|
@ -128,9 +128,12 @@ public class AlarmActivity extends Activity {
|
||||
setConvertViewAlarm(arg1);
|
||||
// save position
|
||||
ackPosition = position;
|
||||
if (!AppParams.DEMO)
|
||||
if (!AppParams.DEMO) {
|
||||
getParentTab().getAlarms(AppParams.USERID);
|
||||
setACK(getAllAlarms().get(position).idx, getAllAlarms().get(position).type, getAllAlarms().get(position).unitName);
|
||||
else {
|
||||
acknowledged.set(position, true);
|
||||
updateResultsInUi(ALARM);
|
||||
} else {
|
||||
getAllAlarms().get(position).ack = 1;
|
||||
updateResultsInUi("else");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user