Skip to content

Commit

Permalink
Add current edited item text to the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
leruaa committed Feb 2, 2015
1 parent 652e6dd commit bdd598b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void onRemove(int position) {
public void onEdit(final int position) {
final EditText edit = new EditText(mContext);
edit.setTextColor(Color.BLACK);
edit.setText(personDataProvider.getItems().get(position));
new AlertDialog.Builder(mContext).setTitle(R.string.edit).setView(edit).setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Expand Down

0 comments on commit bdd598b

Please sign in to comment.