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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ public class RecentsViewTouchHandler {
|
||||
}
|
||||
|
||||
public final void onBusEvent(ConfigurationChangedEvent event) {
|
||||
if (event.fromDisplayDensityChange) {
|
||||
if (event.fromDisplayDensityChange || event.fromDeviceOrientationChange) {
|
||||
updateSnapAlgorithm();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user