Skip to content

Commit 18ccee3

Browse files
naveenshuklaopticod
authored andcommitted
Cancel Button instead of delete button (#112)
Changing template 's button 'Delete' to 'Cancel'
1 parent 94879eb commit 18ccee3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

source-code/app/src/main/java/org/buildmlearn/toolkit/templates/InfoAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void onClick(View v) {
105105
.title(R.string.info_add_new_title)
106106
.customView(R.layout.info_dialog_add_edit_data, true)
107107
.positiveText(R.string.info_template_add)
108-
.negativeText(R.string.info_template_delete)
108+
.negativeText(R.string.info_template_cancel)
109109
.build();
110110

111111
final InfoModel data = getItem(position);

source-code/app/src/main/java/org/buildmlearn/toolkit/templates/LearnSpellingAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void onClick(View v) {
105105
.title(R.string.info_add_new_title)
106106
.customView(R.layout.info_dialog_add_edit_data, true)
107107
.positiveText(R.string.info_template_add)
108-
.negativeText(R.string.info_template_delete)
108+
.negativeText(R.string.info_template_cancel)
109109
.build();
110110

111111
final LearnSpellingModel data = getItem(position);

source-code/app/src/main/java/org/buildmlearn/toolkit/templates/QuizAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private void editItem(final int position, final Context context) {
163163
.title(R.string.quiz_edit)
164164
.customView(R.layout.quiz_dialog_add_question, wrapInScrollView)
165165
.positiveText(R.string.quiz_add)
166-
.negativeText(R.string.quiz_delete)
166+
.negativeText(R.string.quiz_cancel)
167167
.build();
168168

169169
final EditText question = (EditText) dialog.findViewById(R.id.quiz_question);

0 commit comments

Comments
 (0)