hide ack alarms
This commit is contained in:
parent
8661d85218
commit
27ef47ec1e
@ -97,6 +97,10 @@ public class AlertGridViewAdapter extends BaseAdapter
|
|||||||
switch(acknowledged.get(position) ? 1 : 0)
|
switch(acknowledged.get(position) ? 1 : 0)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
ViewGroup.LayoutParams params = convertView.getLayoutParams();
|
||||||
|
if (params != null) {
|
||||||
|
params.height = 0;
|
||||||
|
}
|
||||||
view.imageViewAlert.setImageResource(R.drawable.alert_off);
|
view.imageViewAlert.setImageResource(R.drawable.alert_off);
|
||||||
//view.layoutAlarm.setBackgroundColor(0xffffffff);
|
//view.layoutAlarm.setBackgroundColor(0xffffffff);
|
||||||
break;
|
break;
|
||||||
|
@ -131,6 +131,8 @@ public class AlarmActivity extends Activity {
|
|||||||
if (!AppParams.DEMO) {
|
if (!AppParams.DEMO) {
|
||||||
getParentTab().getAlarms(AppParams.USERID);
|
getParentTab().getAlarms(AppParams.USERID);
|
||||||
setACK(getAllAlarms().get(position).idx, getAllAlarms().get(position).type, getAllAlarms().get(position).unitName);
|
setACK(getAllAlarms().get(position).idx, getAllAlarms().get(position).type, getAllAlarms().get(position).unitName);
|
||||||
|
acknowledged.set(position, true);
|
||||||
|
updateResultsInUi(ALARM);
|
||||||
} else {
|
} else {
|
||||||
getAllAlarms().get(position).ack = 1;
|
getAllAlarms().get(position).ack = 1;
|
||||||
updateResultsInUi("else");
|
updateResultsInUi("else");
|
||||||
|
Loading…
Reference in New Issue
Block a user