OSDN Git Service

Fixing multiwindow drag operation during with rotation.
authorSunny Goyal <sunnygoyal@google.com>
Mon, 20 Mar 2017 22:08:06 +0000 (15:08 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Tue, 28 Mar 2017 16:36:52 +0000 (09:36 -0700)
commit5a81c3806b31c7763734e287d4cf2ed11294281d
tree8fc72b6ca9b469fee3a31bb1487de2da85269c6e
parent66485063d0681ad3d8aaaed9d902e70545512a93
Fixing multiwindow drag operation during with rotation.

> Finishing activity when rotation preference change. This ensures that
  any prefenrece change is immediately applied instead of waiting for resume
  as the new activity is always started with proper setting.
> Clearing task when starting drag in landscape mode. This ensures that a new
  activity instance is started in this case, which overrides previous locked
  rotation by launcher activity.
> Handling drag request in onCreate and enabling rotation based on it.
> Clearing any request from the launcher intent once the drag operation
  is complete

Bug: 36226746
Change-Id: I69f56c13827c25f3e1bc84935cb2acc59b6bd349
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/dragndrop/AddItemActivity.java
src/com/android/launcher3/dragndrop/PinItemDragListener.java