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,10 +1,10 @@
package org.briarproject.android.contact;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnMultiChoiceClickListener;
import android.support.v7.app.AlertDialog;
import org.briarproject.R;
import org.briarproject.api.contact.Contact;
@@ -37,7 +37,8 @@ public class SelectContactsDialog implements OnMultiChoiceClickListener {
public Dialog build(Context ctx) {
if (listener == null || contacts == null || selected == null)
throw new IllegalStateException();
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
AlertDialog.Builder builder = new AlertDialog.Builder(ctx,
R.style.BriarDialogTheme);
int size = contacts.size();
String[] names = new String[size];
boolean[] checked = new boolean[size];