Fix rendering of policy transparency activity.
Use the dialog's context instead of the activity context to inflate the view. BUG:29172155 Change-Id: I0fb32e3d4bfc522a4c8b6d7a6ed55acd01f97446
This commit is contained in:
@@ -59,14 +59,13 @@ public class ShowAdminSupportDetailsDialog extends Activity
|
||||
mDpm = getSystemService(DevicePolicyManager.class);
|
||||
mEnforcedAdmin = getAdminDetailsFromIntent(getIntent());
|
||||
|
||||
mDialogView = LayoutInflater.from(this).inflate(
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
mDialogView = LayoutInflater.from(builder.getContext()).inflate(
|
||||
R.layout.admin_support_details_dialog, null);
|
||||
initializeDialogViews(mDialogView, mEnforcedAdmin.component, mEnforcedAdmin.userId);
|
||||
|
||||
new AlertDialog.Builder(this)
|
||||
.setView(mDialogView)
|
||||
builder.setOnDismissListener(this)
|
||||
.setPositiveButton(R.string.okay, null)
|
||||
.setOnDismissListener(this)
|
||||
.setView(mDialogView)
|
||||
.show();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user