Merge "If notifications can scroll at all, allow scroll up to status bar" into sc-dev
This commit is contained in:
@@ -2073,6 +2073,9 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
||||
int scrollRange = Math.max(0, contentHeight - mMaxLayoutHeight);
|
||||
int imeInset = getImeInset();
|
||||
scrollRange += Math.min(imeInset, Math.max(0, contentHeight - (getHeight() - imeInset)));
|
||||
if (scrollRange > 0) {
|
||||
scrollRange = Math.max(getScrollAmountToScrollBoundary(), scrollRange);
|
||||
}
|
||||
return scrollRange;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user