Merge branch '296-dialog-styling' into 'master'

Use consistent styling for dialogs. #296

Converted all dialogs to use the support library and the Briar theme, so they have a consistent Material Design appearance across all Android versions.

See merge request !152
This commit is contained in:
akwizgran
2016-04-25 15:20:28 +00:00
6 changed files with 18 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
package org.briarproject.android.forum;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import org.briarproject.R;
@@ -17,7 +17,8 @@ public class NoContactsDialog {
public Dialog build(Context ctx) {
if (listener == null) throw new IllegalStateException();
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
AlertDialog.Builder builder = new AlertDialog.Builder(ctx,
R.style.BriarDialogTheme);
builder.setMessage(R.string.no_contacts_prompt);
builder.setPositiveButton(R.string.add_button,
new DialogInterface.OnClickListener() {