am bb03bf05: am 105febd2: Merge "Don\'t re-wrap alert dialog context" into mnc-dev

* commit 'bb03bf055437c21180026b8c8227c52ca2809286':
  Don't re-wrap alert dialog context
This commit is contained in:
Alan Viverette
2015-08-11 19:48:00 +00:00
committed by Android Git Automerger

View File

@@ -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) {