summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-08-11 15:02:42 -0400
committerAlan Viverette <alanv@google.com>2015-08-11 15:02:42 -0400
commit93d9e26ffbbb6780dd2473cc395ae0a3481b4fd4 (patch)
treeab04840e77aa9b68df19974d86e4779a0d1a4275 /core
parentad7719dea4e8fd34854e4dcc918fc593c4416d82 (diff)
downloadframeworks_base-93d9e26ffbbb6780dd2473cc395ae0a3481b4fd4.zip
frameworks_base-93d9e26ffbbb6780dd2473cc395ae0a3481b4fd4.tar.gz
frameworks_base-93d9e26ffbbb6780dd2473cc395ae0a3481b4fd4.tar.bz2
Don't re-wrap alert dialog context
Bug: 23038618 Change-Id: Iafe3a45096153d9fe656ad930cc3978d8fab1968
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/AlertDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/AlertDialog.java b/core/java/android/app/AlertDialog.java
index abe12dc..7824072 100644
--- a/core/java/android/app/AlertDialog.java
+++ b/core/java/android/app/AlertDialog.java
@@ -1082,7 +1082,8 @@ public class AlertDialog extends Dialog implements DialogInterface {
* create and display the dialog.
*/
public AlertDialog create() {
- final AlertDialog dialog = new AlertDialog(P.mContext);
+ // Context has already been wrapped with the appropriate theme.
+ final AlertDialog dialog = new AlertDialog(P.mContext, 0, false);
P.apply(dialog.mAlert);
dialog.setCancelable(P.mCancelable);
if (P.mCancelable) {