Updating code due to TaskStackChangeListener changes

Bug: 221961069
Test: Presubmit
Change-Id: I40b2e5a12c4cd6faa53ee788939c31b25bf5c37b
This commit is contained in:
Sunny Goyal
2022-04-13 10:31:18 -07:00
parent fed1182660
commit afb6e23500
2 changed files with 1 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ import java.util.function.Consumer;
* Singleton class to load and manage recents model.
*/
@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.
public static final MainThreadInitializedObject<RecentsModel> INSTANCE =

View File

@@ -74,7 +74,6 @@ public class RotationTouchHelper implements DisplayInfoChangeListener {
@Override
public void onActivityRotation(int displayId) {
super.onActivityRotation(displayId);
// 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 sensor readings and onDisplayInfoChanged() call