aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/XmppActivity.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
index 7c994c31..eebeb040 100644
--- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
@@ -266,6 +266,29 @@ public abstract class XmppActivity extends Activity {
builder.create().show();
}
+ public void showAxolotlNoSessionsDialog() {
+ Builder builder = new AlertDialog.Builder(this);
+ builder.setTitle("No Sessions");
+ builder.setIconAttribute(android.R.attr.alertDialogIcon);
+ builder.setMessage("Your contact is not Axolotl-capable!");
+ builder.setNegativeButton(getString(R.string.cancel), null);
+ builder.setNeutralButton("Foo",
+ new OnClickListener() {
+
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ }
+ });
+ builder.setPositiveButton("Bar",
+ new OnClickListener() {
+
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ }
+ });
+ builder.create().show();
+ }
+
abstract void onBackendConnected();
protected void registerListeners() {