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

Commit 6f10b511 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

When adding dialog window but not creating update the configuration. am: d7dbec7e am: 7696b0d0

am: 3d2783c8

Change-Id: Iaf8dd88bbbb63c7ebc5b5963f1e30a23d6df0909
parents bd599e4c 3d2783c8
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();