Fixing issue with docking being disallowed for secondary user.

- When a task is docked, the context is not correct for the given user.

Bug: 28195260
Change-Id: I59f73caf818d294c146d215c2bd31dbe1d4c7c5a
This commit is contained in:
Winson
2016-04-26 11:30:59 -07:00
parent a5d3e91cef
commit 9832f8f463
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ public class DividerSnapAlgorithm {
return new DividerSnapAlgorithm(ctx.getResources(),
displayInfo.logicalWidth, displayInfo.logicalHeight,
dividerWindowWidth - 2 * dividerInsets,
ctx.getResources().getConfiguration().orientation
ctx.getApplicationContext().getResources().getConfiguration().orientation
== Configuration.ORIENTATION_PORTRAIT,
insets);
}

View File

@@ -193,7 +193,7 @@ public class RecentsViewTouchHandler {
}
public final void onBusEvent(ConfigurationChangedEvent event) {
if (event.fromDisplayDensityChange) {
if (event.fromDisplayDensityChange || event.fromDeviceOrientationChange) {
updateSnapAlgorithm();
}
}