mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Merge "Add scroll logging to RecentsView behind DEBUG flag" into sc-v2-dev am: 1569754519
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16015197 Change-Id: I845dbb5fe3c0d891413a5e8d46d58d502edd9485
This commit is contained in:
@@ -189,6 +189,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
TaskThumbnailCache.HighResLoadingState.HighResLoadingStateChangedCallback,
|
||||
TaskVisualsChangeListener, SplitScreenBounds.OnChangeListener {
|
||||
|
||||
private static final String TAG = "RecentsView";
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
// TODO(b/184899234): We use this timeout to wait a fixed period after switching to the
|
||||
// screenshot when dismissing the current live task to ensure the app can try and get stopped.
|
||||
private static final int REMOVE_TASK_WAIT_FOR_APP_STOP_MS = 100;
|
||||
@@ -4354,6 +4357,15 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
updateMinAndMaxScrollX();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateMinAndMaxScrollX() {
|
||||
super.updateMinAndMaxScrollX();
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "updateMinAndMaxScrollX - mMinScroll: " + mMinScroll);
|
||||
Log.d(TAG, "updateMinAndMaxScrollX - mMaxScroll: " + mMaxScroll);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeMinScroll() {
|
||||
if (getTaskViewCount() > 0) {
|
||||
@@ -4460,6 +4472,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
pageScrollChanged = true;
|
||||
outPageScrolls[i] = pageScroll;
|
||||
}
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "getPageScrolls - outPageScrolls[" + i + "]: " + outPageScrolls[i]);
|
||||
}
|
||||
}
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "getPageScrolls - clearAllScroll: " + clearAllScroll);
|
||||
}
|
||||
return pageScrollChanged;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user