aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/ui/dialogs
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-03-10 23:03:19 +0100
committersteckbrief <steckbrief@chefmail.de>2016-03-10 23:03:19 +0100
commit8585231be2844ab794cfa63454b1013bae8502f6 (patch)
tree65126dbebd698c0358b2d499be9e16c3ae8d8f5f /src/main/java/de/thedevstack/conversationsplus/ui/dialogs
parent07c2aba59b0ec0fd492621406d08ce33e23ad7ad (diff)
parent27c9c0aa21e3ec1a5801f6c3279caf0cd4fe9248 (diff)
Merge remote-tracking branch 'remotes/origin/trz/rename' into trz/rebase
Conflicts: src/main/java/de/thedevstack/conversationsplus/ui/listeners/ResizePictureUserDecisionListener.java
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/ui/dialogs')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/ui/dialogs/UserDecisionDialog.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/ui/dialogs/UserDecisionDialog.java b/src/main/java/de/thedevstack/conversationsplus/ui/dialogs/UserDecisionDialog.java
index 2d919528..c29832a5 100644
--- a/src/main/java/de/thedevstack/conversationsplus/ui/dialogs/UserDecisionDialog.java
+++ b/src/main/java/de/thedevstack/conversationsplus/ui/dialogs/UserDecisionDialog.java
@@ -11,20 +11,21 @@ import de.thedevstack.conversationsplus.ui.listeners.UserDecisionListener;
import eu.siacs.conversations.R;
/**
- * Created by tzur on 31.10.2015.
+ * A dialog to give the user the choice to decide whether to do something or not.
+ * The user also has the choice to save his answer for the future.
+ * A UserDecisionListener is used to provide the functionality to be performed by clicking on yes, or no.
*/
public class UserDecisionDialog extends AbstractAlertDialog {
protected final UserDecisionListener listener;
protected final CheckBox rememberCheckBox;
public UserDecisionDialog(Activity context, int questionResourceId, UserDecisionListener userDecisionListener) {
- super(context, "User Decision");
+ super(context, questionResourceId);
this.listener = userDecisionListener;
int viewId = R.layout.dialog_userdecision;
View view = context.getLayoutInflater().inflate(viewId, null);
- ((TextView)view.findViewById(R.id.dlgUserDecQuestion)).setText(questionResourceId);
this.rememberCheckBox = (CheckBox) view.findViewById(R.id.dlgUserDecRemember);
this.setPositiveButton(R.string.cplus_yes, new PositiveOnClickListener());