Ejemplo n.º 1
0
 public void removeNotification(int groupPosition) {
   SimpleNotification n = notifications.get(groupPosition);
   notifications.remove(n);
   adapter.notifyDataSetChanged();
   Context context = getApplicationContext();
   new NotificationsAlarmManager(context).removeAlarm(context, n);
 }
Ejemplo n.º 2
0
 public void editNotification(int location) {
   SimpleNotification n = notifications.get(location);
   Context context = getApplicationContext();
   Intent i = new Intent(context, CreateSimpleNotificationActivity.class);
   i.putExtra(CreateSimpleNotificationActivity.FLAG, CreateSimpleNotificationActivity.EDIT);
   i.putExtra(CreateSimpleNotificationActivity.EDITING_NOTIFICATION, n);
   i.putExtra(CreateSimpleNotificationActivity.ID, n.getId());
   startActivityForResult(i, REQUEST_CODE_EDIT);
 }