Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93becf51 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "When adding dialog window but not creating update the configuration." into nyc-mr1-dev

parents aea8efbc d7dbec7e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.content.ComponentName;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.DialogInterface;
import android.content.res.Configuration;
import android.content.pm.ApplicationInfo;
import android.graphics.drawable.Drawable;
import android.net.Uri;
@@ -291,6 +292,11 @@ public class Dialog implements DialogInterface, Window.Callback,

        if (!mCreated) {
            dispatchOnCreate(null);
        } else {
            // Fill the DecorView in on any configuration changes that
            // may have occured while it was removed from the WindowManager.
            final Configuration config = mContext.getResources().getConfiguration();
            mWindow.getDecorView().dispatchConfigurationChanged(config);
        }

        onStart();