Merge "Recreate activity with correct configuration" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5ac2da04c1
@@ -2545,6 +2545,9 @@ public final class ActivityThread {
|
|||||||
Context appContext = createBaseContextForActivity(r, activity);
|
Context appContext = createBaseContextForActivity(r, activity);
|
||||||
CharSequence title = r.activityInfo.loadLabel(appContext.getPackageManager());
|
CharSequence title = r.activityInfo.loadLabel(appContext.getPackageManager());
|
||||||
Configuration config = new Configuration(mCompatConfiguration);
|
Configuration config = new Configuration(mCompatConfiguration);
|
||||||
|
if (r.overrideConfig != null) {
|
||||||
|
config.updateFrom(r.overrideConfig);
|
||||||
|
}
|
||||||
if (DEBUG_CONFIGURATION) Slog.v(TAG, "Launching activity "
|
if (DEBUG_CONFIGURATION) Slog.v(TAG, "Launching activity "
|
||||||
+ r.activityInfo.name + " with config " + config);
|
+ r.activityInfo.name + " with config " + config);
|
||||||
Window window = null;
|
Window window = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user