Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

delete (to be tested)

Signed-off-by: simonewebdesign <hello@simonewebdesign.it>
  • Loading branch information...
commit 7614c4b0d6f71f8e4e49e4d4cb38ebc158d9c721 1 parent e673aec
@simonewebdesign authored
View
5 src/com/example/todolist/ItemView.java
@@ -13,6 +13,11 @@
private static final String TAG = "ItemView";
private ToDoRow rowEntity = null;
+
+ public ToDoRow getRowEntity() {
+ return rowEntity;
+ }
+
private Context context = null;
public ItemView(Context context, AttributeSet attr) {
View
3  src/com/example/todolist/MainActivity.java
@@ -238,6 +238,7 @@ public void onDialogDeleteClick(DialogFragment dialog) {
Log.v(TAG, "onDialogDeleteClick");
ItemView view = ((ItemViewDialogFragment) dialog).getItemView();
-
+ todoRows.remove(view.getRowEntity());
+ adapter.notifyDataSetChanged();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.