Merge "Updating code due to TaskStackChangeListener changes" into tm-dev am: bc25ec02a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17730696 Change-Id: I6e42e7159bafdd8aee8814c7f0eb1d82d075a485 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -54,7 +54,7 @@ import java.util.function.Consumer;
|
|||||||
* Singleton class to load and manage recents model.
|
* Singleton class to load and manage recents model.
|
||||||
*/
|
*/
|
||||||
@TargetApi(Build.VERSION_CODES.O)
|
@TargetApi(Build.VERSION_CODES.O)
|
||||||
public class RecentsModel extends TaskStackChangeListener implements IconChangeListener {
|
public class RecentsModel implements IconChangeListener, TaskStackChangeListener {
|
||||||
|
|
||||||
// We do not need any synchronization for this variable as its only written on UI thread.
|
// We do not need any synchronization for this variable as its only written on UI thread.
|
||||||
public static final MainThreadInitializedObject<RecentsModel> INSTANCE =
|
public static final MainThreadInitializedObject<RecentsModel> INSTANCE =
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ public class RotationTouchHelper implements DisplayInfoChangeListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActivityRotation(int displayId) {
|
public void onActivityRotation(int displayId) {
|
||||||
super.onActivityRotation(displayId);
|
|
||||||
// This always gets called before onDisplayInfoChanged() so we know how to process
|
// This always gets called before onDisplayInfoChanged() so we know how to process
|
||||||
// the rotation in that method. This is done to avoid having a race condition between
|
// the rotation in that method. This is done to avoid having a race condition between
|
||||||
// the sensor readings and onDisplayInfoChanged() call
|
// the sensor readings and onDisplayInfoChanged() call
|
||||||
|
|||||||
Reference in New Issue
Block a user